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.

Returns

Fulfilled - The router response.

Return Type:

Related Content:

Was this helpful?

Create a response to continue routing

Code Example

Copy Code
1import {next} from 'wix-router';
2
3export function myRouter_beforeRouter(request) {
4
5 return next();
6}