-
Notifications
You must be signed in to change notification settings - Fork 30.4k
Description
Describe the feature you'd like to request
The ability to turn Fast Refresh OFF and stop Next.js from refreshing my page automatically against my will.
Describe the solution you'd like
A configuration setting that would disable Fast Refresh and let me refresh the page in browser manually.
Describe alternatives you've considered
Dear team, some 3rd party libraries are not compatible with Fast Refresh. I cannot a) ask every library developer to fix their libraries to work with Next.js Fast Refresh; and b) wait for them to complete the updates.
Why can't we just switch Fast Refresh OFF with a configuration option and move on with using custom 3rd party packages with Next.js?
Please reopen this issue - it is an issue as it's simply not a viable option to get all libraries respect requirements imposed by the Fast Refresh feature of Next.js
For instance, I'd like to turn it off entirely for the whole project as I am using a 3rd party in-house library that is not compatible with Fast Refresh and will not be made so in the next year at least, if at all.
The second argument against Fast Refresh is that it is not sophisticated enough to preserve the state when I need it preserved, and it keeps refreshing the page against my will. I just want to stop it and keep hitting F5 or Command-R to refresh the page in the browser manually.
The experience of the page being updated against my will when I don't need it is frustrating.