Skip to content

Function: PlayRouterProvider()

API / @xmachines/play-tanstack-solid-router / PlayRouterProvider

function PlayRouterProvider<TActor>(props): any;

Defined in: play-tanstack-solid-router/src/play-router-provider.tsx:31

Connects a PlayerActor to TanStack Solid Router, keeping actor state and browser URL in sync bidirectionally.

The bridge is created synchronously at component evaluation time (Solid’s execution model) and torn down via onCleanup when the component is disposed. Unlike React, prop stability is not a concern — Solid’s props accessor is already reactive and the bridge is created once per component instance.

Type Parameters

Type Parameter
TActor extends PlayActor

Parameters

ParameterType
propsPlayRouterProviderProps<TActor>

Returns

any