You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm building a Chrome extension, which requires supporting multiple "apps" within the same app due to each UI entrypoint (options page, extension popup, side panel, etc.) being independent from other entrypoints.
In other words, the router for the side panel of a Chrome extension is completely separate from the router for the options page of a Chrome extension. Each page is essentially its own app that uses hash-based routing in order to support navigating within the app.
Unfortunately, TanStack Router's usage of declaration merging for type safety seems to limit an application to a single router.
Is this correct? It seems from @TkDodo's comment that this is a known limitation in TanStack Router and I'm curious if there are any possible workarounds.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm building a Chrome extension, which requires supporting multiple "apps" within the same app due to each UI entrypoint (options page, extension popup, side panel, etc.) being independent from other entrypoints.
In other words, the router for the side panel of a Chrome extension is completely separate from the router for the options page of a Chrome extension. Each page is essentially its own app that uses hash-based routing in order to support navigating within the app.
Unfortunately, TanStack Router's usage of declaration merging for type safety seems to limit an application to a single router.
Is this correct? It seems from @TkDodo's comment that this is a known limitation in TanStack Router and I'm curious if there are any possible workarounds.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions