-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
How to get X-WP-TotalPages
from getRawEntityRecords
?
#39411
Comments
Hello, there is no high-level API to use at the moment that I would be aware of, but I can share an example in the codebase where a workaround exists: gutenberg/packages/block-library/src/comment-template/hooks.js Lines 105 to 119 in cb63e4e
@adamziel, it's something that would be great to integrate in the |
I think this was resolved via #55164. |
@youknowriad, can you confirm? |
👋🏼 doing a sweep of high priority issues to keep the label relevant and actionable. I've removed this label as it's not clear if this is still actionable and it's stalled for quite some time. If the label needs to be added back in, go for it but please add context as to why it's still relevant and relevant to the degree of needing quick mobilization across the project to address. |
Yes, this is addressed with the |
Description
Hi there, I'm new to Gutenberg, my apologies for the off-topic.
I found the
core-data
package is handy for accessing data from the backend, So I'm trying to usegetRawEntityRecords
for fetching posts and it works out of the box. I checked the documentation but looks like it doesn't provide all the data as REST API. I would really appreciate it if someone can help me to find out these mentioned points below:X-WP-TotalPages
to display pagination )getRawEntityRecords
manually?Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
No response
Environment info
No response
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: