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
* A React hook that automatically triggers fetches of data from an endpoint, 'subscribes' the component to the cached data, and reads the request status and cached data from the Redux store. The component will re-render as the loading status changes and the data becomes available. Additionally, it will cache multiple "pages" worth of responses within a single cache entry, and allows fetching more pages forwards and backwards from the current cached pages.
895
+
*
896
+
* The query arg is used as a cache key. Changing the query arg will tell the hook to re-fetch the data if it does not exist in the cache already, and the hook will return the data for that query arg once it's available.
897
+
*
898
+
* This hook combines the functionality of both [`useInfiniteQueryState`](#useinfinitequerystate) and [`useQuerySubscription`](#useinfinitequerysubscription) together, and is intended to be used in the majority of situations.
899
+
*
900
+
* #### Features
901
+
*
902
+
* - Automatically triggers requests to retrieve data based on the hook argument and whether cached data exists by default
903
+
* - 'Subscribes' the component to keep cached data in the store, and 'unsubscribes' when the component unmounts
904
+
* - Caches multiple pages worth of responses, and provides methods to trigger more page fetches forwards and backwards
905
+
* - Accepts polling/re-fetching options to trigger automatic re-fetches when the corresponding criteria is met
906
+
* - Returns the latest request status and cached data from the Redux store
907
+
* - Re-renders as the request status changes and data becomes available
0 commit comments