Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

unstable_useBlocker

Allow the application to block navigations within the SPA and present the user a confirmation dialog to confirm the navigation. Mostly used to avoid using half-filled form data. This does not handle hard-reloads or cross-origin navigations.

function unstable_useBlocker(shouldBlock: boolean | BlockerFunction): Blocker;
§
unstable_useBlocker(shouldBlock: boolean | BlockerFunction): Blocker
[src]

§Parameters

§
shouldBlock: boolean | BlockerFunction
[src]

§Return Type