Render TanStackDevtools outside a plugin-context
#481
Unanswered
SimonSimCity
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
When reading the docs, I got the impression, that the tabs somehow would be aware of whether they are within a context or not - e.g. that
TanStackRouterDevtoolsPanelwould only try to render ifRouterProvideris initialized.Since part of my website (the authentication mechanism) is wrapped around the router (the router is not rendered if the user is not authenticated), I am unsure of where to add this plugin.
I cannot put the code right within
StrictMode- as shown in the example in https://tanstack.com/devtools/latest/docs/framework/react/basic-setup#setup, because in order to useTanStackRouterDevtoolsPanel, I need to render it within theRouterProvider, otherwise I get an exception.What's the proper way of solving this?
Beta Was this translation helpful? Give feedback.
All reactions