next( )


Returns a response that instructs the router to continue.

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.

Method Declaration
Copy
function next(): Promise<WixRouterResponse>;
Request
This method does not take any parameters
Returns
Return Type:Promise<WixRouterResponse>
Create a response to continue routing
JavaScript
import { next } from "wix-router"; export function myRouter_beforeRouter(request) { return next(); }
Errors

This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?