Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Docs]: Improve documentation about what invokes loaders #10967

Open
marcomuser opened this issue Oct 26, 2023 · 0 comments
Open

[Docs]: Improve documentation about what invokes loaders #10967

marcomuser opened this issue Oct 26, 2023 · 0 comments
Labels

Comments

@marcomuser
Copy link

Describe what's incorrect/missing in the documentation

There seems to be quite a bit of confusion about when and what exactly invokes the loaders in a react-router 6.4+ application. Many people seem to assume that it is the RouterProvider that invokes the loaders. However, it is createBrowserRouter which kicks off the loaders (as far as I understand it at least). I think this could be improved in the documentation so that it is easier to understand how to setup react-router with for example mock service worker and similar tools.

See this issue in the msw Github repo for context: mswjs/msw#1653

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant