#How do I use the TanStack dev tools (Router) both in dev and prod? My setup throws an error

3 messages · Page 1 of 1 (latest)

winter basin
#

Ah. I found a beautiful solution. ClientOnly component:
js```
<ClientOnly>
<TanStackDevtools
plugins={[
{
name: "Tanstack Router",
render: isDev ? (
<TanStackRouterDevtoolsPanel />
) : (
<TanStackRouterDevtoolsInProd />
),
},
]}
/>
</ClientOnly>

Although it did weirdly render the TanStackRouterDevtoolsInProd outside the TanStackDevtools component. What is up with that?
viscid river
#

please ask in #devtools