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
When the act function is called for the first time, it installs a debounceRendering hook in order to be able to flush effects and state updates synchronously.
It does not restore the hook before it returns. As a result, any subsequent effects or setState calls which get executed outside the act() call will no longer trigger deferred rendering, which is a pretty confusing experience to debug.
Is there any reason not to restore any options hooks before act returns?
The text was updated successfully, but these errors were encountered:
When the act function is called for the first time, it installs a debounceRendering hook in order to be able to flush effects and state updates synchronously.
It does not restore the hook before it returns. As a result, any subsequent effects or
setState
calls which get executed outside theact()
call will no longer trigger deferred rendering, which is a pretty confusing experience to debug.Is there any reason not to restore any
options
hooks beforeact
returns?The text was updated successfully, but these errors were encountered: