Skip to content

Conversation

@mattcosta7
Copy link
Contributor

@mattcosta7 mattcosta7 commented Dec 15, 2025

Closing - No meaningful performance impact

This PR only removes an unused array parameter from the useResizeObserver call. It's a code style cleanup, not a performance optimization.

The actual performance benefit comes from PR #7335 which adds throttling to useResizeObserver itself.

What this changes

- useResizeObserver(callback, wrapperRef, [])
+ useResizeObserver(callback, wrapperRef)

This is just removing a no-op empty array parameter. No behavior change, no performance impact.

Remove unnecessary array dependency parameter from useResizeObserver call.

Part of #7312
@changeset-bot
Copy link

changeset-bot bot commented Dec 15, 2025

🦋 Changeset detected

Latest commit: fd32833

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@primer/react Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions
Copy link
Contributor

👋 Hi, this pull request contains changes to the source code that github/github-ui depends on. If you are GitHub staff, test these changes with github/github-ui using the integration workflow. Or, apply the integration-tests: skipped manually label to skip these checks.

Copy link
Contributor Author

Closing - this is just removing an unused parameter with no behavior or performance change.

@mattcosta7 mattcosta7 closed this Dec 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

integration-tests: recommended This change needs to be tested for breaking changes. See https://arc.net/l/quote/tdmpakpm

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants