You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In RowView, the getWordSpans function is called twice on updates
First when selection map updates
Then again when data updates (the textData prop)
This means double the queries are getting executed.
Hard to fix this in the row itself because needs both these dependencies
Possible fixes
I think to fix will need to get all the word data at once rather than from each row on render. To do this can either
Subscribe to the $data store in DataDisplay.svelte and when it updates, check if I need to fetch new word data and get it for all the rows at once (then filter down to pass as prop to each row)
Is probably best to do this in the TableClient when new data is fetched, but not totally sure how to do this
Probably will also want to execute as arrow since returned table will be kind big
The text was updated successfully, but these errors were encountered:
Issue
In RowView, the
getWordSpans
function is called twice on updatesThis means double the queries are getting executed.
Hard to fix this in the row itself because needs both these dependencies
Possible fixes
I think to fix will need to get all the word data at once rather than from each row on render. To do this can either
$data
store inDataDisplay.svelte
and when it updates, check if I need to fetch new word data and get it for all the rows at once (then filter down to pass as prop to each row)The text was updated successfully, but these errors were encountered: