-
Notifications
You must be signed in to change notification settings - Fork 1
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
Update _nodeIndex when child changes #7
Comments
wonder if there's a way to trigger some index-updating cycle on |
this is, if nothing else, a predicted problem: facebook#2127 (comment)
|
options:
|
The frustrating thing about accessing the parent is that there doesn't seem to be a good way to do it, at all. I'm imagining a CompositeComponent storing a reference to its parent, somehow, but I don't know if the parent could change out from under it after initial mount. Looking up by root ID seems to be (a) impossible and (b) a super-gross hack even if it was. |
This is pretty difficult & important.
When the following structure changes from:
to:
the only update cycle that gets called is for the first composite, and the second one doesn't know that a previous sibling fragment was updated, so its
_nodeIndex
is now off by one.The text was updated successfully, but these errors were encountered: