Closed moroine closed 6 months ago
Created a CodeSandbox of the issue:
https://codesandbox.io/s/nostalgic-dew-egxddl?file=/src/App.tsx
Sounds as breaking change
It could be an option to select the width to return
Because this issue seems to have been inactive for quite some time now, I'm closing it as stale. If you're still encountering this bug in v10, feel free to reopen it.
According to the documentation, we can pass ObserverOptions https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserver/observe
But when using
box: 'border-box'
the width returned by the hook is alwayscontentBox