rsnext/test/development/app-hmr/app
Jiachi Liu c87a1b12c3
fix: env hot reload for RSC pages (#51930)
### Issue
When you edit .env* files, the pages under app dir that using env vars are not triggering hot reload

### Fix
Triggering serverComponentChanges hot reload action when we detect env or tsconfig related change. There's a time period that we need to wait before the compilation is finished. First we save a flag `reloadOnDone` if we need to reload when after compilation is done, by determining if `envChange` is `true` (we already know this in dev server). Then in the compilation hooks, we refresh RSC page once it's finished.

### Extra change 

since we're checking `event.action` in client hot reloader, and throwing error for unknown action, filter devPagesManifestUpdate out from unexpected action as it sometimes triggered as error in console. Introduced in #51516
Fixes NEXT-1261
2023-07-03 10:11:28 +00:00
..
env fix: env hot reload for RSC pages (#51930) 2023-07-03 10:11:28 +00:00
folder Fix app client child entry not being disposed when deleting the file (#46583) 2023-02-28 23:32:03 +00:00
layout.jsx Fix app client child entry not being disposed when deleting the file (#46583) 2023-02-28 23:32:03 +00:00