Skip to content

Commit

Permalink
feat: Use ResizeObserver to listen to size changes (#360)
Browse files Browse the repository at this point in the history
* feat: Use ResizeObserver to listen to size changes

The previous approach used a `requestAnimationFrame()` loop with calls to `getBoundingClientRect()` on every frame.

Fixes #359

* chore: Remove @reach/observe-rect dependency
  • Loading branch information
christiankaindl committed Aug 3, 2022
1 parent a53f362 commit 3eba856
Show file tree
Hide file tree
Showing 7 changed files with 223 additions and 216 deletions.

0 comments on commit 3eba856

Please sign in to comment.