-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Closed
Description
When the options in TableController.table changes, they are not used => previous options are kept.
I look in the code. I think it because '...options' is missing when we setOptions on tableInstance.
Current code :
this.tableInstance.setOptions(prev => ({
...prev,
state: { ...this._tableState, ...options.state },
onStateChange: (updater: any) => {
this._tableState = updater(this._tableState)
this.host.requestUpdate()
options.onStateChange?.(updater)
},
}))
`
Fix code :
`js
this.tableInstance.setOptions(prev => ({
...prev,
...options,
state: { ...this._tableState, ...options.state },
onStateChange: (updater: any) => {
this._tableState = updater(this._tableState)
this.host.requestUpdate()
options.onStateChange?.(updater)
},
}))
`Metadata
Metadata
Assignees
Labels
No labels