Skip to content

[internal] useLayoutEffect with ResizeObserver#4814

Open
romgrk wants to merge 1 commit into
mui:masterfrom
romgrk:fix-resize-observer
Open

[internal] useLayoutEffect with ResizeObserver#4814
romgrk wants to merge 1 commit into
mui:masterfrom
romgrk:fix-resize-observer

Conversation

@romgrk
Copy link
Copy Markdown
Contributor

@romgrk romgrk commented May 12, 2026

Make sure we use useLayoutEffect with ResizeObserver.

@romgrk romgrk requested a review from atomiks as a code owner May 12, 2026 19:44
@romgrk romgrk added the type: enhancement It’s an improvement, but we can’t make up our mind whether it's a bug fix or a new feature. label May 12, 2026
@romgrk romgrk added the internal Behind-the-scenes enhancement. Formerly called “core”. label May 12, 2026
@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented May 12, 2026

commit: 4b6e451

@code-infra-dashboard
Copy link
Copy Markdown

code-infra-dashboard Bot commented May 12, 2026

Bundle size

Bundle Parsed size Gzip size
@base-ui/react ▼-30B(-0.01%) ▼-6B(0.00%)

Details of bundle changes

Performance

Total duration: 1,053.58 ms -38.58 ms(-3.5%) | Renders: 50 (+0) | Paint: 1,622.59 ms -41.20 ms(-2.5%)

No significant changes.


Check out the code infra dashboard for more information about this PR.

@netlify
Copy link
Copy Markdown

netlify Bot commented May 12, 2026

Deploy Preview for base-ui ready!

Name Link
🔨 Latest commit 4b6e451
🔍 Latest deploy log https://app.netlify.com/projects/base-ui/deploys/6a0383225e9ab700088d475a
😎 Deploy Preview https://deploy-preview-4814--base-ui.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@oliviertassinari oliviertassinari changed the title [internals] useLayoutEffect with ResizeObserver [internal] useLayoutEffect with ResizeObserver May 12, 2026
Copy link
Copy Markdown
Member

@flaviendelangle flaviendelangle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Worth double checking, but I think the registerTabResizeObserverElement in TabsTab should also be a layout effect

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

internal Behind-the-scenes enhancement. Formerly called “core”. performance type: enhancement It’s an improvement, but we can’t make up our mind whether it's a bug fix or a new feature.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants