Skip to content

Blocks: use new useResizeObserver hook in @wordpress/compose #39922

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

Open
jeherve opened this issue Oct 28, 2024 · 0 comments · May be fixed by #43334
Open

Blocks: use new useResizeObserver hook in @wordpress/compose #39922

jeherve opened this issue Oct 28, 2024 · 0 comments · May be fixed by #43334
Assignees
Labels
[Focus] Blocks Issues related to the block editor, aka Gutenberg, and its extensions developed in Jetpack [Pri] Normal [Type] Janitorial

Comments

@jeherve
Copy link
Member

jeherve commented Oct 28, 2024

New useResizeObserver hook in @wordpress/compose

The new API and behavior of useResizeObserver is meant as a thin wrapper for the browser-native ResizeObserver API, which enables more use cases and better composition. The previous API is still supported, though it is considered legacy and deprecated.

Dev note: https://make.wordpress.org/core/2024/10/20/miscellaneous-block-editor-changes-in-wordpress-6-7/#new-useresizeobserver-hook-in-wordpress-compose

@jeherve jeherve changed the title Blocks: use new useResizeObserver hook in @wordpress/compose ([dev note](https://make.wordpress.org/core/2024/10/20/miscellaneous-block-editor-changes-in-wordpress-6-7/#new-useresizeobserver-hook-in-wordpress-compose)) Blocks: use new useResizeObserver hook in @wordpress/compose Oct 28, 2024
@jeherve jeherve added [Type] Janitorial [Pri] Normal [Focus] Blocks Issues related to the block editor, aka Gutenberg, and its extensions developed in Jetpack labels Oct 28, 2024
@coder-karen coder-karen self-assigned this May 1, 2025
@coder-karen coder-karen linked a pull request May 1, 2025 that will close this issue
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Focus] Blocks Issues related to the block editor, aka Gutenberg, and its extensions developed in Jetpack [Pri] Normal [Type] Janitorial
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants