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
It looks like useSWRInfinite does a for-loop for each page that needs re-fetching, and awaits inside of each step. I often have to set revalidateAll, and I'm noticing an odd flickering happening when some pages load and then the next. I'd prefer they all load in together. Could there be an option to Promise.all() the revalidation calls?
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
-
It looks like
useSWRInfinite
does a for-loop for each page that needs re-fetching, andawait
s inside of each step. I often have to setrevalidateAll
, and I'm noticing an odd flickering happening when some pages load and then the next. I'd prefer they all load in together. Could there be an option toPromise.all()
the revalidation calls?Beta Was this translation helpful? Give feedback.
All reactions