-
Notifications
You must be signed in to change notification settings - Fork 652
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(Transition): Stale nodes in transition callbacks #469
base: master
Are you sure you want to change the base?
Conversation
As a note. When user is passing |
I'm looking into code and it seems after #559 statement above is false one?! Also current implementation in this PR, it seems just to add back |
I could inline it sure. But it's used often enough that I think abstracting it is warranted. |
The issues is that
findDOMNode
is only called a single time aftercomponentDidUpdate
and the return value is used for every transition callback that is triggered by this update. If the child however changes its DOM node while transitioning this value is stale.Edit: This is now a breaking change from 4.4.0 because #559 changes the signatures of
on*
callbacks whennodeRef
is used. I think this behavior is unnecessary and makes it harder to reason about the component.