Skip to content

Doesn't apply styles to newly injected container children #75

Open
@ZeeCoder

Description

@ZeeCoder

Assume a grid, with items popping in and out of existence, where grid is the container, and the items should have a specific with.
When the items are injected, styles are not applied automatically, since recalculation only happens on grid resize.

This is quite an annoyance with React, where components might be mounted / unmounted quite frequently.

A solution would be to pick up on such children using the mutation observer.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions