RootCauseunvalidated

The browser/JIT compiler performs optimizations and can determine variables are not needed for the closure invoked by the event handler, so it allocates them in a way that can be optimized away after `App` finishes rendering. When execution is paused, DevTools reflects this optimized state and the variables may no longer be materialized.

b7eff0e8-d9f7-4657-b9af-aded243893b4

The browser/JIT compiler performs optimizations and can determine variables are not needed for the closure invoked by the event handler, so it allocates them in a way that can be optimized away after App finishes rendering. When execution is paused, DevTools reflects this optimized state and the variables may no longer be materialized.