You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## Description
This fixes a potential race condition where the component unmounted
before the callback passed into `setImmediate` in `updateHandlers` could
execute.
That would lead to a "No handler for tag X" error, since the handler
would not have been registered any more at that point in time.
There might also be other race conditions because of that
`setImmediate`, but this is the only one I could reproduce.
## Test plan
I encountered this in our project code and debugged it with a [replay
recording](https://www.replay.io/).
I might be able to provide that replay if contacted on a private side
channel for verification purposes, but I assume the problem & solution
are probably already understandable just by the explanation above.
Co-authored-by: Jakub Piasecki <jakubpiasecki67@gmail.com>
0 commit comments