Data loads over other data

I have a highly instensive app design which started with a listview of perhaps 60 rows each with over 22 components. It performs okay in the morning (here in the UK) but slows right down in the afternoons. Anyway, to combat this I added a filter so that not all 60 rows are shown at once (which helps but isn't perfect).

So I made another version of filtering where the query is loaded to a Temporary state, and again fewer rows are shown.

Changes made to the data are saved to the Temporary state whenever the Change event occurs, except the two edit boxes, which save the data on the Blur event.

However, when one changes a value the data is reloaded. There can be a bit of a lag (it's still not performant, different changes perform different activities, e.g. changing the type sets the price, calculates the VAT, etc, changing the Resource also changes the status, changing the event, sets the date and time propoerties, etc.) and it is very possible to make edits in the text boxes before the data is reloaded and when it does, it overwrites any changes in the text boxes! I've tried a few things: disabling the text box when loading, tried getting the default value to depend on loading, but I haven't been able to make this work.

You guys are always soooo helpful so I'm wondering if anyone has any ideas? It was suggested that I use tables, which, even with the new table component are not yet able to do what I need.

I thought I read a post about something similar but couldn't follow it too well and don't know where to look for it now.


Hi @jclutterbuck

Thanks for reaching out and sharing all of these details!

First off, listView performance is something we want to work on internally. I'm tracking a feature request for improved listView performance and I'll post here if I get any updates.

Secondly, definitely keep an eye on the table :sunglasses: It's quite fast, even with larger datasets. I'm happy to update you if you let me know what specific features you're waiting for.

Was this the post you were looking at? (Pagination in listviews)

For your on loading logic, were you using queryName.isFetching?

Dear @Tess

I'm probably more excited about this than I should be.

I'm waiting on two items for the new table component:

  1. access to currentRow or something that will help me achieve the same thing New table component missing features from legacy table - #4 by jclutterbuck

  2. some modal buttons or siilar to add rows or filter.

I have switched over to the new table component where I don't use either of the above features., but these tend to be the most benign tables.

I'm excited for solutions to the above and improved listView performance too!

Thanks for offering to keep me updated - really useful!


1 Like