You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tracking this in facebook/react#29915 as well. StrictMode went through a refactor in React 19 so it's not unlikely something broke considering Next.js has the same issue.
Describe the bug
Original issue filed here: vitejs/vite-plugin-react-swc#214, also applies to this plugin.
In prior versions of react, saving a file will trigger the components useEffect hooks to run. This does not work for react 19.
Reproduction
https://github.com/gkiely/swc-issue
Steps to reproduce
npm i
npm run dev
Video example (using @vitejs/plugin-react-swc, but the same behavior is present for @vitejs/plugin-react)
https://www.loom.com/share/b493602e3f7244d2948c5bb871531881?sid=c9bdec15-5b87-4375-a659-6c63804cb032
System Info
Used Package Manager
npm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: