Skip to content

Does not work with fragment as root #18

Description

@EmielM
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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions