In useResizeObserver, prefer useLayoutEffect over useEffect for more accurate layout measurements. #17610
-
First, I would like to express my sincere gratitude for all your efforts in creating such a fantastic product.I have integrated the Zone Painter component and its functionalities into my own project, but I encountered some errors during execution. After investigating, I discovered that the issue seems to stem from the use of Using Thank you very much for taking the time to read this suggestion. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
When I was developing the zone/mask editor, I tried both hooks and saw no difference. I stuck with |
Beta Was this translation helpful? Give feedback.
When I was developing the zone/mask editor, I tried both hooks and saw no difference. I stuck with
useEffectto remain consistent. Your application likely behaves differently than Frigate. There have been no reported issues, so there's no reason for us to introduce changes at this point. But thank you for your suggestion.