-
-
Notifications
You must be signed in to change notification settings - Fork 536
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
commit deletion #22
Comments
Good question. The trick is: if |
Oh, I didn't notice it was implemented that way, thanks for the reply! I'm curious, how would you implement it if it can accept multiple children? |
It's more complex because you need to search the different dom nodes that may be at different levels on the subtrees. |
I see, thanks! I had a different implementation by iterating each children and then doing the recursive call to commitDeletion: https://github.com/LXSMNSYC/luact/blob/master/luact/fiber/commit_delete/init.lua Anyways, big thanks to this DIY React project of yours, I get to learn about React Fiber's internal workings! |
Hello, I saw this repo for reverse-engineering or creating your own React library. It was a great project, but I have a question.
In this specific line:
https://github.com/pomber/didact/blob/master/didact.js#L136
How does
commitDeletion
perform on sibling fibers of the given child fiber?The text was updated successfully, but these errors were encountered: