Skip to content

Commit

Permalink
Simplify useResizeObserver (WordPress#64820)
Browse files Browse the repository at this point in the history
Co-authored-by: jsnajdr <jsnajdr@git.wordpress.org>
Co-authored-by: ciampo <mciampini@git.wordpress.org>
Co-authored-by: tyxla <tyxla@git.wordpress.org>
Co-authored-by: DaniGuardiola <daniguardiola@git.wordpress.org>
  • Loading branch information
5 people authored and bph committed Aug 31, 2024
1 parent d6b1eb9 commit de37b29
Show file tree
Hide file tree
Showing 2 changed files with 86 additions and 289 deletions.
2 changes: 1 addition & 1 deletion packages/compose/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,7 @@ _Returns_

### useResizeObserver

Hook which allows to listen the resize event of any target element when it changes sizes. \_Note: `useResizeObserver` will report `null` until after first render.
Hook which allows to listen to the resize event of any target element when it changes size. \_Note: `useResizeObserver` will report `null` sizes until after first render.

_Usage_

Expand Down
Loading

0 comments on commit de37b29

Please sign in to comment.