Interface: LocationLike
API / @xmachines/play-router / LocationLike
Defined in: types.ts:414
Minimal location interface required by adapters that read the current URL at
connect() time. Injectable for SSR and testing — pass a mock instead of the
global location when the DOM is unavailable.
Defined structurally (no Location reference) so this package compiles without
the DOM lib.
Example
// SSR / test — injected mockconst mockLoc: LocationLike = { pathname: "/dashboard", search: "?tab=posts" };connectRouter({ actor, routeMap, location: mockLoc });Properties
| Property | Modifier | Type | Defined in |
|---|---|---|---|
pathname | readonly | string | types.ts:415 |
search | readonly | string | types.ts:416 |