Commit 29938a1
committed
fix: The
The same memoisation applied to the hook response's width and height
should've applied to the onResize callback as well, but it didn't.
This is now fixed, which means that even if the RO reports a change,
the onResize callback will only be called if there's an actual change
to report after the rounding function was applied to the reported values.onResize callback is no longer incorrectly called with the same values.1 parent 1224bc8 commit 29938a1
1 file changed
+0
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
275 | 275 | | |
276 | 276 | | |
277 | 277 | | |
278 | | - | |
0 commit comments