-
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
Package apiFetch Response Headers #10458
Comments
Just pass |
Thanks @youknowriad I do see the full response object. Unfortunately the headers are an empty object. I'm attempting to paginate a collection. Does |
|
@squibbleFish Depending on how you're trying to inspect the
|
Putting it another way, @squibbleFish , you can get the total pages through this:
|
I hope I'm in the right place here, the previous posts were helpful to me:
This almost does the trick. When I access the numberOfPages prop in myComponent, I get a promise. I feel this is not the way to do it. I'm having a hard time figuring out the differences, what to use where, use gentEntityrecords or apiFetch. Am I making any sense? |
@mediacs I think the right place for your question is the support forums; this thread is dedicated towards discussion about how to create and improve the Gutenberg editor code itself, and unfortunately it's not a place we can provide support. I do think you're using |
Using
fetch
I can see the response headers from the given api call. Is there a way to do that usingapiFetch
?The text was updated successfully, but these errors were encountered: