Update Sortable Table when TABLE with same name gets replace with new structure & data #291
Replies: 1 comment
-
To make sure I'm understanding what is going on, I assume you are also regenerating all the Mosaic components? If so, and you are regenerating the However, if the schema of your data table is changing, you might be getting stale data from the Coordinator's table catalog cache. When you call So, maybe try this instead? vg.coordinator().clear({ clients: true, cache: true, catalog: true }); This will force the table catalog to also be cleared, causing the database to be queried anew when looking up table column information. |
Beta Was this translation helpful? Give feedback.
-
I'm using https://uwdata.github.io/mosaic/examples/table.html on a single-page app, which resets MOSAIC's state with:
so that I can load new data (via drag-and-drop) without having to reload the page. This works for plotting a graph, but rendering the data table once again uses the previous SQL query, which, of course, fails because
mydata
now looks differently.How can I tell the table renderer to generate a new SQL statement?
Beta Was this translation helpful? Give feedback.
All reactions