[compiler] Add regression test for useEffectEvent reading a variable declared later (#37618)
Fixes #37209 The stale value from the issue does not reproduce on main anymore. The compiler leaves the useEffectEvent callback unmemoized, so it always reads the latest value. I added the repro from the issue as a test fixture so this stays covered. The new fixture passes with yarn snap.
S
Srinu desetti committed
98cec2ec262ee5eb32ffb39d694bec64f0c05732
Parent: 2c68870
Committed by GitHub <noreply@github.com>
on 9/16/2026, 8:53:44 AM