vitejs / vite-plugin-react-swc

Speed up your Vite dev server with SWC
MIT License
774 stars 49 forks source link

useEffect does not re-fire on hot reload with React 19 #214

Open gkiely opened 2 weeks ago

gkiely commented 2 weeks ago

Description: In prior versions of react, saving a file will trigger the components useEffect hooks to run. This does not work for react 19.

Repo: https://github.com/gkiely/swc-issue

Steps to reproduce:

Video reproduction: https://www.loom.com/share/b493602e3f7244d2948c5bb871531881?sid=c9bdec15-5b87-4375-a659-6c63804cb032