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
Implement some way to store responses from the pagination API in state (result sets keyed off of the combination of filters/sorts/pages?) so we don't have to make an API request for all new page requests, filter changes, and re-sorting with a loading spinner when those API requests are in flight. This caching allows us to prevent making additional API calls when the pagination API has already returned a set of tasks that fit on a single page, so we have all of the information we need to apply additional sorts and filters without hitting the server.
Connects #11310. Adds naive caching based only on the URL of the endpoint we are making the task page request to. Later on, we can add the ability to bypass the API request when there is only a single page of results (thus the front-end already has access to all of the rows that the back-end could possibly return so we can do all of the filtering on the front-end without needing to involve the back-end).
In the screen capture below, notice that the second time we make a request for hearing clarification tasks we do not make an API request.
![naive_caching](https://user-images.githubusercontent.com/32683958/65074122-29092b80-d962-11e9-849e-fcfebf44ddf1.gif)
Implement some way to store responses from the pagination API in state (result sets keyed off of the combination of filters/sorts/pages?) so we don't have to make an API request for all new page requests, filter changes, and re-sorting with a loading spinner when those API requests are in flight. This caching allows us to prevent making additional API calls when the pagination API has already returned a set of tasks that fit on a single page, so we have all of the information we need to apply additional sorts and filters without hitting the server.
Blocked by
Acceptance criteria
The text was updated successfully, but these errors were encountered: