Spreadsheet component needs fixes for better usability #592
Labels
elements
Relates to Elements components and utilities
enhancements
Relates to a feature enhancement
front-end
Relates to front end issues
Milestone
Summary:
Currently, the
afterDataChanged
callback props inSpreadsheet
is being called EVERY TIME data is changed, including the first time render(data changed from[[]]
toinitialData
). This is okay for most general use cases.But in our use cases:
Mutation update
inafterDataChanged
-> receive the updated data from server ->setData
back intoSpreadsheet
->Mutation update
inafterDataChanged
will be called again -> this create an infinity loop.Task:
Add an
afterCellsChanged
callback props that will only be called in these cases:Cell
changedCustomComponent
value change (e.g when<select>
a new value)setData
calls will not triggerafterCellsChanged
The text was updated successfully, but these errors were encountered: