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
{{ message }}
Repository navigation
Commit 969cdeb
Browse filesBrowse the repository at this point in the historyBrowse files
fix(query-core): re-attach MutationObserver to its in-flight mutation on resubscribe
When the last listener unsubscribes, onUnsubscribe() removes the observer
from its current mutation, but resubscribing never added it back. If React
tore down and re-established the subscription while a mutation was in
flight (StrictMode, <Activity> hide/show, re-suspending boundaries), the
mutation settled against an empty observer list and the observer kept
serving its frozen 'pending' snapshot forever.
Mirror QueryObserver.onSubscribe(): when the first listener subscribes,
re-attach to the current mutation and refresh the result in case the
mutation settled while detached.
Fixes#11171
0 commit comments