rsnext/packages/next/client/streaming
Gerald Monaco 944c734d04
Add unstable_useFlushEffects hook (#34117)
Implements https://github.com/vercel/next.js/issues/30997 with some minor tweaks to the design:

* The hook is moved to Client Components (e.g. `pages/_app` instead of `pages/_document`). This was a silly oversight in the original design: the hook needs to be called during server prerendering.

* `useFlushEffects` instead of `useFlushEffect` as there isn't a particularly safe way to implement the singular semantics as a Client Component hook given the current implementation of server rendering.

---

Fixes #30997
2022-02-18 00:18:28 +00:00
..
index.ts Add unstable_useFlushEffects hook (#34117) 2022-02-18 00:18:28 +00:00
refresh.ts Group streaming experimental apis (#33878) 2022-02-02 13:42:14 +00:00
vitals.ts Group streaming experimental apis (#33878) 2022-02-02 13:42:14 +00:00