Skip to content

Commit bd0f3c8

Browse files
committed
fix: The onResize callback is no longer incorrectly called with the same values.
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.
1 parent aa38199 commit bd0f3c8

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,4 +275,3 @@ The same technique can also be used to provide any of your preferred ResizeObser
275275
## License
276276

277277
MIT
278-

0 commit comments

Comments
 (0)