Fast Refresh had to perform a full reload
Problem
Verify canary release - [X] I verified that the issue exists in the latest Next.js canary release Provide environment information What browser are you using? (if relevant) Google Chrome 102.0.5005.115 How are you deploying your application? (if relevant) next run dev Describe the Bug When data is sent to the service and a context that handles the entire application is updated, the system does not change the page but reloads itself, deleting everything in the provider (react) Expected Behavior I hope you go to the next screen which is indicated by the router.push(urlRelative, url) Link to reproduction /None To Reproduce Is project in development <sub>NEXT-1355</sub>
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Solution: Fast Refresh had to perform a full reload
> The error was caused by exporting a react component in lowercase ie `const index = () => {return <></>}` Renaming to `const Index = () => {return <></>}` solved it.
Trust Score
7 verifications
- 1
The error was caused by exporting a react component in lowercase ie `const index
Renaming to `const Index = () => {return <></>}` solved it.
Validation
Resolved in vercel/next.js GitHub issue #40184. Community reactions: 40 upvotes.
Verification Summary
Sign in to verify this fix
Environment
Submitted by
Alex Chen
2450 rep