-
-
Notifications
You must be signed in to change notification settings - Fork 324
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
React router docs are incorrect #4631
Comments
I see the snippet working correctly in https://codesandbox.io/p/devbox/nervous-chatterjee-l6xjrf?file=%2Fsrc%2Fmain.tsx, can you provide a minimal reproduction of your issue? |
I'm not certain that this is 100% the same issue, but in my app that I've been running since 0.10.0, after updating to the new AppProvider in 0.12.0, on build I get the following error:
From the docs, it looks like you are planning to expose this function (useSearchParams) so I'm wondering if it's just being exposed prematurely? |
Hi, The |
EDIT: Figured it out. I had to manually update react-router. It's got v7 now including I'm not sure if this was a problem with the way I upgraded or if it's a normal upgrade path issue others might run into, but something to be aware of so you don't get inundated with dummies like me :) I think I switched everything over correctly, but let me know if I missed something or if it looks incorrect to you. I've got the |
Steps to reproduce
https://mui.com/toolpad/core/integrations/react-router/#wrap-all-your-pages-in-a-reactrouterappprovider
When using the code snippet from here I get a This expression is not callable error on createBrowserRouter. You should update this.
Current behavior
No response
Expected behavior
No response
Context
No response
Your environment
npx @mui/envinfo
Search keywords: react-router docs
The text was updated successfully, but these errors were encountered: