Skip to content
#

debounce

Here are 288 public repositories matching this topic...

jdthorpe
jdthorpe commented Nov 21, 2021

Describe the bug
The useSize() function in the demo for @react-hook/resize-observer uses the anti-pattern of depending on the ref object provided by React.useRef() in the dependency list of React.useLayoutEffect(). This has the effect of not setting an initial value for the size on the first rendering. This matters because elements that don't get re-rendered never get a sized.

**

Improve this page

Add a description, image, and links to the debounce topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the debounce topic, visit your repo's landing page and select "manage topics."

Learn more