@xmachines/play-tanstack-router
API / @xmachines/play-tanstack-router
Shared, framework-agnostic TanStack Router bridge base for XMachines Play.
TanStack Router exposes the identical navigate / load / history surface in
both its React and Solid flavours, so the entire bridge implementation lives here
as TanStackRouterBridgeBase (extending RouterBridgeBase from
@xmachines/play-router). The framework adapter
packages only subclass it to bind their concrete router type.
This package has no TanStack runtime dependency — TanStackRouterLike is a
structural, type-only interface covering the small router surface the bridge uses.
Who consumes it
@xmachines/play-tanstack-react-router— TanStack Router adapter (React)@xmachines/play-tanstack-solid-router— TanStack Router adapter (SolidJS)
Usage
import { TanStackRouterBridgeBase } from "@xmachines/play-tanstack-router";
export class MyTanStackBridge extends TanStackRouterBridgeBase {}
const bridge = new MyTanStackBridge(router, actor, routeMap);bridge.connect();// Cleanup on unmountreturn () => bridge.disconnect();Exports
TanStackRouterBridgeBase— abstract bridge base classTanStackRouterLike— structural (type-only) TanStack router surfaceTanStackRouteMapLike— narrow route-map surface the bridge requires
License
MIT
@xmachines/play-tanstack-router
Shared, framework-agnostic TanStack Router bridge base for XMachines Play.
Consumed by @xmachines/play-tanstack-react-router and
@xmachines/play-tanstack-solid-router, which subclass
TanStackRouterBridgeBase to bind their concrete router type.