-
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
Data: Stores become unresponsive when batched actions trigger an error #62311
Comments
Thanks for reporting the issue, @Mr2P! Can you provide more details for the reproduction steps? What should I test after placing Update: I was able to reproduce the issue. Note: The |
@Mamaduka In my block, I need to fetch all public setting fields as follows: |
@Mr2P, the #60591 indeed introduced the behavior change, but it is not a cause of the bug; it only highlighted one. There are two issues:
|
Description
Possible solution: change from
catch
statement tofinally
statement in this line https://github.com/WordPress/gutenberg/blob/trunk/packages/core-data/src/resolvers.js#L298Step-by-step reproduction instructions
Execute
useEntityRecords('root', 'site')
inside the edit function of a block.Screenshots, screen recording, code snippet
No response
Environment info
WordPress 6.6 beta 1
Twenty-Twenty Four
Chrome
Desktop with Windows 11
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: