Skip to content

Function: repointProviderBridge()

API / @xmachines/play-router / index / repointProviderBridge

function repointProviderBridge(bridge, basePath?, basePathParams?): void;

Defined in: packages/play-router/src/provider-lifecycle.ts:270

Moves the mount of a live bridge, and rebuilds nothing.

The call is safe directly after the open: it resolves to the prefix that the constructor applied already, and setBasePath then returns at once. A null bridge, and a bridge with no mount API, are both no-ops.

Parameters

ParameterType
bridgeRouterBridge | null | undefined
basePath?string
basePathParams?Record<string, string | number>

Returns

void