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.

1 Reply
fascinating-indigo•5mo 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