#What's the point of context in clientLoader, and how to use it?
1 messages · Page 1 of 1 (latest)
right now it's not possible to use it
but there's a PR to add support to customize it https://github.com/remix-run/react-router/pull/12515
once that's merged you will be able to pass a context object to createBrowserRouter and in framework mode to HydratedRouter
then that value will be accessible in your client loaders
got it. yeah, was just looking through the pr. that's really interesting. that would mean that we'd be making another layer essentially. before mounting our app, we'd need to get/set everything in our client context. if that stuff is asynchronous, how would ssr look like?
just rambling here 😆