-
-
Notifications
You must be signed in to change notification settings - Fork 298
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(utils): created a new useResizeObserver implementation
Note: This is fully backwards compatible but the old API will be removed in the next major version bump. The new `useResizeObserver` implementation provides a `ref` and a `refHandler` where the `refHandler` should be passed to the DOM node that is being watched. The `target` API is kind of deprecated since it does some weird things and doesn't help with the resize observer loop behavior. When using the new API, the event handlers will now use a "subscription" model where only a single `ResizeObserver` is created instead of multiple since it helps increase performance.
- Loading branch information
Showing
8 changed files
with
889 additions
and
155 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.