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
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
When fetching large amounts of data via unpaginated endpoints do you think it makes sense to use readable streams to show initial state to users (say first 50 items) and than update following 2000+ items in BG (updating store only when fetch is done).
https://developer.chrome.com/articles/fetch-streaming-requests/#previously-on-the-exciting-adventures-of-fetch-streams
https://developer.mozilla.org/en-US/docs/Web/API/Streams_API/Using_readable_streams
https://redux-toolkit.js.org/rtk-query/usage/streaming-updates (but without websocket, just a 2 step update 50 and all items)
What is your opinion on this approach and do you have any suggestions?
Beta Was this translation helpful? Give feedback.
All reactions