Skip to content
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

Gutenberg widget fails with more than 50 guest authors #1050

Open
antonlukin opened this issue May 29, 2024 · 0 comments
Open

Gutenberg widget fails with more than 50 guest authors #1050

antonlukin opened this issue May 29, 2024 · 0 comments

Comments

@antonlukin
Copy link
Contributor

antonlukin commented May 29, 2024

When the site has more than 50 guest authors, the Gutenberg widget may malfunction and display an infinite spinner after loading. This issue seems to be caused by the API returning only the first 50 records in alphabetical order. If an author outside of this list is selected, the plugin fails to retrieve the necessary value.

Steps to Reproduce:
Add more than 50 guest authors to the site.
Open the Gutenberg editor and try to use the widget.
Select a guest author that is alphabetically beyond the first 50 in the list.

Expected Result:
The widget should function correctly and display the selected guest author.

Actual Result:
The widget shows an infinite spinner and does not load properly.

Additional Information:
It appears that the API call is limited to 50 records. The plugin needs to handle pagination or request more records to include all guest authors.

const authors = useSelect(

image
@antonlukin antonlukin changed the title Gutenberg Widget Fails with More Than 50 Guest Authors Gutenberg widget fails with more than 50 guest authors May 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant