When rendering of split headers when using a data in the Split By field, the re-rendering on table.update adds rows #2519
Replies: 2 comments
-
Your initial data is created on the 22nd const table = await worker.table(createData(22), { But you update with data from the 26 const newData = createData(26); So I think the behavior is correct? Please let me know if I'm reading this wrong |
Beta Was this translation helpful? Give feedback.
-
Hello, thanks for your reply. We would like to seek clarity on Table.update method. What is the expected behavior? What is the expected behavior when we have an index parameter, as we have a parameter in this case: "timestamp". Does it replace the data or append rows to the data. If we are adding different dates, our impression is that the values of timestamp should be different, but all it does is add rows. Should we use table.replace instead? I've included screenshots. Please note that the secondary screenshot is for enhanced viewership with an expanded column. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Bug Report
When rendering of split headers when using a data in the Split By field, Perspective table.update() adds rows instead of re-rendering table with updated values
Steps to Reproduce:
Use Perspective Viewer to render the table
Expected Result:
Expected to see table render with updated values
Actual Result:
Expected to see updated values, but new rows were added.
Reproduction:https://codesandbox.io/p/sandbox/serene-albattani-h96wxj
Environment:
Perspective 2.7.1
MacOS Ventura 13.6.1
Chrome Browser 120.0.6099.234 (Official Build) (x86_64)
Beta Was this translation helpful? Give feedback.
All reactions