infinite-table / infinite-react

The modern React DataGrid for building apps — faster
https://infinite-table.com
73 stars 5 forks source link

Switching from pivot to non pivot does not always work #177

Closed roblotter closed 1 year ago

roblotter commented 1 year ago

When switching from a pivot configuration to no pivot, the columns are not displayed properly after the switch.

Namely I'm having a pivot where I render <InfiniteTable /> with columns={{}} and then go to no pivot and some columns.

This happens because the state management does not detect a prop change when props.pivotColumns go from a defined value to undefined.

roblotter commented 1 year ago

Fixed in 1.3.12