Return width according to provided observerOptions
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 always contentBox
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.