Parellel Suspense Fetching #1872
Unanswered
ConsoleTVs
asked this question in
Ideas
Replies: 1 comment 1 reply
-
#168 is an RFC to solve this 👍 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently, if a component requires more than once fetch, the Suspense will first throw the first promise and after it's resolved, it'll throw the second, making it similar to:
I would like to suggest a way for us to determine all the fetching in parallel so that the behaviour is something like this:
Therefore, allowing us to throw a single promise in suspense mode and performing parallel fetching. This problem is more noticeable the more fetches you have.
This is how I solved it in my
vswr
library (SWR for vue.js)https://github.com/ConsoleTVs/vswr#parallel-suspense
Beta Was this translation helpful? Give feedback.
All reactions