- 
                Notifications
    You must be signed in to change notification settings 
- Fork 354
Closed
Description
Describe the bug
The caching used when loading data for a file-list doesn't consider the case where the page size is increased beyond the size used for the initial load of a given query.
To Reproduce
Steps to reproduce the behavior:
- Go to https://mgt.dev/?path=/story/components-mgt-file-list--file-list
- Edit the component to use a larger page size than the default 10 e.g. <mgt-file-list page-size="20"></mgt-file-list>
- Note that when the page loads again there are only 10 items shown
This assumes that you have not loaded additional pages of data into the cache as the caching handles the case where the page size is less than the number of items held in the cache.
Expected behavior
When page size increases beyond the number of items in the cache and there is a cached next link then the first page of data with the new page size is fetched and cached before rendering files.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Done ✔️