__experimentalUseHasRecursion deprecation is attempting to spread a non-iterable variable #60437
Labels
Backwards Compatibility
Issues or PRs that impact backwards compatability
[Package] Block editor
/packages/block-editor
[Status] In Progress
Tracking issues with work in progress
[Type] Bug
An existing feature does not function as intended
Description
gutenberg/packages/block-editor/src/components/recursion-provider/index.js
Line 79 in fd060e3
__experimentalUseHasRecursion accepted a string argument (above), the deprecation instead tries to spread a props object (below)
gutenberg/packages/block-editor/src/components/recursion-provider/index.js
Line 100 in 49532f3
Step-by-step reproduction instructions
make a block that uses __experimentalUseHasRecursion in Wordpress 6.4.3 and in 6.5.
observe that it works with a unique id as the sole argument in 6.4.3, and that it errors in 6.5 with this message in console appearing:
TypeError: e is not iterable
Screenshots, screen recording, code snippet
No response
Environment info
wordpress 6.5
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: