Skip to content

Commit

Permalink
fix: restore hasBeenAttached on resync (#19023)
Browse files Browse the repository at this point in the history
  • Loading branch information
tepi committed Mar 28, 2024
1 parent b6522bf commit 40c1a7f
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,10 @@ protected void prepareForResync() {
stateNode.hasBeenAttached = false;
stateNode.hasBeenDetached = false;
});
visitNodeTreeBottomUp(sn -> sn.fireAttachListeners(true));
visitNodeTreeBottomUp(sn -> {
sn.hasBeenAttached = true;
sn.fireAttachListeners(true);
});
}

/**
Expand Down

0 comments on commit 40c1a7f

Please sign in to comment.