Quantcast
Viewing all articles
Browse latest Browse all 6397

How to append RTK Query response with previously cached data

Using a RTK query, I'm attempting to add infinite scrolling to a Flatlist. How do I integrate the new response with the data that was previously fetched? I must also replace the existing data with the new response upon refetch.

Is it possible to receive an appended response in the usQuery hook's data variable?


Viewing all articles
Browse latest Browse all 6397

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>