Skip to content

Setting isLoading in BasicTable causing ComputedColumn to lose state #2612

@mikecote

Description

@mikecote

I'm using a BasicTable with a ComputedColumn that renders a popover for each row. I'm having an issue where the popover closes / loses state after loading the BasicTable with updated data. I'm setting isLoading: true before fetching the data and then setting it back to isLoading: false afterwards. Without doing so, everything works fine.

After talking with @chandlerprall, when isLoading is true, the BasicTable is swapping out the EuiTableBody for LoadingTableBody , but rendering the same rows object. However, React sees the wrapping component as fundamentally different and "necessarily" unmounts & remounts everything.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions