Skip to content

[resize-observer] Fixes #298 Provide optional ResizeObserverOptions#299

Open
noahlaux wants to merge 2 commits intojaredLunde:masterfrom
noahlaux:feat/298--provide-options-for-resize-observer
Open

[resize-observer] Fixes #298 Provide optional ResizeObserverOptions#299
noahlaux wants to merge 2 commits intojaredLunde:masterfrom
noahlaux:feat/298--provide-options-for-resize-observer

Conversation

@noahlaux
Copy link

This PR provides a way to provide options to the underlying ResizeObserver.

Usage

useResizeObserver(target, (entry) => setSize(entry.contentRect), { box: ['device-pixel-content-box']} );

Closes #298

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support the box options property for useResizeObserver

1 participant