mirror of
https://github.com/stablyai/orca.git
synced 2026-11-13 09:27:29 +00:00
Two new React Compiler compat hazards: - discarded-subscription: a useSyncExternalStore call whose result is thrown away, so the reads after it get cached on unrelated inputs. - store-read-in-memo-block: a render-level getState() that the compiler places in a cache-guarded block. Reads inside the source's own useMemo or callbacks keep their written deps and are skipped. The compiled output is parsed once for hook and store reads. Current sites are grandfathered in the hazard baseline. Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>