dillon1000/react
Commit
Browse files Manage children inside DOM properties
Fiber manages children separately so we don't need to do it here. However, we special case the text content children and dangerouslySetInnerHTML. This reveals a bug that we currently don't handle the case where we switch from dangerouslySetInnerHTML or text children to element children, because child insertions are handled before the parent updates. We could possibly handle this case by removing all nodes before the first host child but that is a bit unfortunate.
Changed paths1 file
First-parent comparisonsrc/renderers/dom/fiber/ReactDOMFiberComponent.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…