Replies: 1 comment
-
#1041 might be able to give you some hint |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I need to be able to do a bunch of useSWR calls from a list of ids (size is unknown and can change).
I can't put them in a for loop because it's a hook, and I also want to know when all are finished, similar to
Promise.all()
.I'm confused by
useSWR
in this situation because it's a hook and it doesn't look like it returns a promise so how do I batch all these calls? What's the best way to do this?Beta Was this translation helpful? Give feedback.
All reactions