-
Hi, I would like to run multiple queries in parallel while using Suspense. The methods of parallel execution may include how to declare useQuery side by side and how to use use useQueries. In Suspense mode, useQueries was used for parallel query, but Suspense was not executed and it behaved as if Suspense mode was disabled. But what I want is that Is this impossible? As a comparative example, recoil confirmed that I could reach my desired goal through waitForAll function in Suspense mode. Thanks to these examples, I learned that it can be implemented in Suspense mode. I watched #1523 and waited for it to be fixed, but when I followed issue, I saw that API Spec was changed in v4, so I tested it, and it was the same. Accordingly, please answer whether I am presenting an impossible function or am planning to modify it. I have prepared a sample code for clear reproduction. Thank you. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
it's like one of the three or so open bugs we have: There have been various attempts at making it work, but it's not trivial, as suspense stops execution when the first promise is thrown. Have a look at the discussion here as well: |
Beta Was this translation helpful? Give feedback.
-
This is supported now. The above comment should not be marked as answer. |
Beta Was this translation helpful? Give feedback.
This is supported now. The above comment should not be marked as answer.