T
TanStack5mo ago
conscious-sapphire

Should i wrap theme or use createRootWithContext

I'm currently using create rootRouteWithContext for the query client for Tanstack query but for the theme provider should I use should I wrap it or can I also add it as context.
No description
1 Reply
fascinating-indigo
fascinating-indigo5mo ago
do you ever need to access that theme provider outside of react in a router lifecycle method such as beforeLoad/loader? only then put it in the router context

Did you find this page helpful?