gaearon / react-deep-force-update

Force-updates React component tree recursively

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Does not work with fragment as root

EmielM opened this issue · comments

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.