Search...
next( )
Returns a response that instructs the router to continue.
Description
The next()
function is used in the beforeRouter()
hook
to indicate the hook has completed and the routing should continue to the
data binding router.
Syntax
function next(): Promise<WixRouterResponse>
next Parameters
This function does not take any parameters.
Related Content:
Was this helpful?
Create a response to continue routing
Copy Code
1import {next} from 'wix-router';23export function myRouter_beforeRouter(request) {45 return next();6}