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.
function next(): Promise<WixRouterResponse>;
import { next } from "wix-router";
export function myRouter_beforeRouter(request) {
return next();
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.