Skip to content

[Bug]: useComponentSize not updating when values changed #15187

@brianacnguyen

Description

@brianacnguyen

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

  1. Go to browser
  2. Connect to a dapp
  3. Check out the network badge

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

Metadata

Metadata

Assignees

Labels

regression-prod-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.0team-design-systemAll issues relating to design system in Mobiletype-bugSomething isn't working

Type

No fields configured for Bug.

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions