Skip to content

Try not to pass styling props down from Table to Table* components #1529

@acelaya

Description

@acelaya

We are currently passing some props down from Table to TableRow, or from both of them to TableCell, via context.

Those props are then used to dynamically set CSS classes in the children components. This means, every time those change, all components down the Table tree will need to re-render.

However, we could achieve something similar via CSS directly, reducing re-renders when not strictly needed.

This was first discussed in #1525 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions