API reference > @kontsedal/olas-router > RouteState
RouteState type
A snapshot of route state. Params values are string | undefined to match React Router (an optional segment not present in the current URL isundefined), not just string. Pass to createRouterAdapter(initial) on the server to seed the scopes before the render — the Bridge only pushes state in a (client-only) effect, so without seeding, route-scoped signals would be empty for the entire server render.
Signature:
typescript
type RouteState = {
params?: Record<string, string | undefined>;
search?: Record<string, unknown>;
pathname?: string;
};