-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
[Bug]: useComponentSize not updating when values changed #15187
Copy link
Copy link
Labels
regression-prod-7.44.0Regression bug that was found in production in release 7.44.0Regression bug that was found in production in release 7.44.0release-7.47.0Issue or pull request that will be included in release 7.47.0Issue or pull request that will be included in release 7.47.0team-design-systemAll issues relating to design system in MobileAll issues relating to design system in Mobiletype-bugSomething isn't workingSomething isn't working
Metadata
Metadata
Assignees
Labels
regression-prod-7.44.0Regression bug that was found in production in release 7.44.0Regression bug that was found in production in release 7.44.0release-7.47.0Issue or pull request that will be included in release 7.47.0Issue or pull request that will be included in release 7.47.0team-design-systemAll issues relating to design system in MobileAll issues relating to design system in Mobiletype-bugSomething isn't workingSomething isn't working
Type
Fields
Give feedbackNo fields configured for Bug.
Describe the bug
Currently useComponentSize is using ref, which does not update the dimension value when it changes. This results in components relying on useComponentSize to determine the final size broken. useComponentSize should be updated to use useState and re-render when the dimension value changes
Expected behavior
No response
Screenshots/Recordings
Simulator.Screen.Recording.-.iPhone.15.Pro.Max.-.2025-05-06.at.09.29.13.mp4
Steps to reproduce
Error messages or log output
Detection stage
In production (default)
Version
7.44.0
Build type
None
Device
IOS
Operating system
iOS
Additional context
No response
Severity
No response