Does not work with fragment as root
EmielM opened this issue · comments
Emiel Mols commented
var root = ReactDOM.render(<React.Fragment><A /><B /></React.Fragment>);
deepForceUpdate(root); // does not update component B
Eyeing the code, the early return on https://github.com/gaearon/react-deep-force-update/blob/master/src/index.js#L84 should probably move to after the sibling loop to make this case work.