Skip to main content

bn.offPageNotFound

offPageNotFound: (cb: PageNotFoundCallback) => void

description Stop listening that users try to navigate to a page that doesn't exist.

example

const handler = ({ isEntryPage, path, query }) => {}bn.onPageNotFound(handler)bn.offPageNotFound(handler)

Type declaration

▸ (cb): void

Parameters

NameType
cbPageNotFoundCallback

Returns

void


PageNotFoundCallback#

Ƭ PageNotFoundCallback: (result: OnPageNotFoundCallbackResult) => void

Type declaration

▸ (result): void

Parameters

NameType
resultOnPageNotFoundCallbackResult

Returns

void


Interface: OnPageNotFoundCallbackResult#

NameTypeDescription
isEntryPageboolean
pathstring
queryRecord<string, unknown>