altinn-studio
altinn-studio copied to clipboard
StudioTableRemotePagination - maintain height when spinner is displayed
Description
Table jumping when navigating between pages
When navigating between pages of the table, the height of the table container changes when the spinner appears/disappears. This only happens when the "page" in the table is not cached. Ideally only the content of the table should be hidden by the spinner, and the height should be unchanged so that the table doesn't "jump" up and down.
https://github.com/Altinn/altinn-studio/assets/1636323/523835cc-f64a-45df-90fe-f463dc1c70be
Add support for prefetching
Use Tanstack Query to prefetch the text page, so that we get fewer loaders