-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Two REST API calls inside withAPIData? #6528
Comments
You could use WPGraphQL to request multiple resources in a single request. 😀 |
Is this related maybe? #6277 |
I installed 2.8 and the issue is mitigated somehow. Now, from time to time, one of the REST API calls stalls indefinitely. Hope that the #6303 fix gets into 2.9. |
Updated to 2.9 and I'm still having problems. |
Tried again with GB 3.0.1 and the issue still persists. Right now, it's impossible to call two endpoints one after another without the risk of one of them failing. I hope you can find a fix for #6303 soon. |
As |
Issue Overview
I'm developing a dynamic block that retrieves post data using the REST API. I'm wondering if one can make two REST API calls at the same time inside withAPIData:
Right now I'm getting a permanent "loading !" message instead of data from both endpoints. Is this supported? Do I have to make two separate REST API calls? If so, how?
Thanks in advance
The text was updated successfully, but these errors were encountered: