Multiple routers
Is it possible to have/register multiple distinct routers in one app? Use case is multiple different windows / views in an electron app. Probably silly but curious now if it’s possible
I tried a few approaches but couldn’t get the types working:
1: Tried path ‘alias’ in tsconfig, makes sense that didn’t work
2: Tried installing aliases of the library in package.json ‘“@router/a”: “npm:@tanstack/react-router@1.x.x”’
3: Tried declaring a module in ‘*.d.ts’ and reexporting
Thanks
1 Reply
wise-white•2y ago
can't you use a single route tree and base each view on different first level routes?