Skip to content

API Reference / @gtkx/navigation / usePreventRemoveContext

Function: usePreventRemoveContext() ​

usePreventRemoveContext(): object

Defined in: node_modules/.pnpm/@react-navigation+core@7.21.13_patch_hash=6462da01ed23beee88f01d290d3714743e43d2fd84235198fcbe09501a61d1d4_react@19.2.8/node_modules/@react-navigation/core/lib/typescript/src/usePreventRemoveContext.d.ts:1

Returns ​

object

notifyPreventRemove ​

notifyPreventRemove: () => void

Returns ​

void

preventedRoutes ​

preventedRoutes: PreventedRoutes

setPreventRemove ​

setPreventRemove: (id, routeKey, preventRemove) => void

Parameters ​

id ​

string

routeKey ​

string

preventRemove ​

boolean

Returns ​

void