Skip to content

[popups] Avoid redundant re-renders with lazy flip - #5372

Merged
atomiks merged 2 commits into
mui:masterfrom
mdm317:fix/lazy-flip-state-update
Jul 30, 2026
Merged

atomiks merged 2 commits into
mui:masterfrom
mdm317:fix/lazy-flip-state-update

Conversation

@mdm317

@mdm317 mdm317 commented Jul 29, 2026 •

Copy link
Copy Markdown
Contributor

This change reduces re-renders in components that use lazy flipping.
You can verify this behavior using the Profiler in React DevTools.

@pkg-pr-new

pkg-pr-new Bot commented Jul 29, 2026 •

Copy link
Copy Markdown
  • base-ui-tanstack-start

  • vite-css-base-ui-example

    pnpm add https://pkg.pr.new/mui/base-ui/@base-ui/react@5372
    
    pnpm add https://pkg.pr.new/mui/base-ui/@base-ui/utils@5372
    

commit: eb7fc46

@code-infra-dashboard

code-infra-dashboard Bot commented Jul 29, 2026 •

Copy link
Copy Markdown

Bundle size

Bundle Parsed size Gzip size
@base-ui/react 🔺+10B(0.00%) 🔺+7B(0.00%)

Details of bundle changes

Performance

Total duration: 1,109.93 ms +19.34 ms(+1.8%) | Renders: 78 (+0) | Paint: 1,764.55 ms +19.68 ms(+1.1%)

No significant changes — details


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

@netlify

netlify Bot commented Jul 29, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for base-ui ready!

Name Link
🔨 Latest commit eb7fc46
🔍 Latest deploy log https://app.netlify.com/projects/base-ui/deploys/6a6a9fa8c836310008ad35ee
😎 Deploy Preview https://deploy-preview-5372--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.

@mdm317
mdm317 marked this pull request as ready for review July 29, 2026 17:25
@atomiks atomiks added the scope: all components Widespread work has an impact on almost all components. label Jul 29, 2026
@atomiks
atomiks merged commit 1e64978 into mui:master Jul 30, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

performance scope: all components Widespread work has an impact on almost all components.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants