Skip to content

[popups] Remove duplicate options key from arrow middleware - #5606

Merged
atomiks merged 1 commit into
mui:masterfrom
atomiks:claude/base-ui-issue-5594-9a5b14
Sep 1, 2026
Merged

atomiks merged 1 commit into
mui:masterfrom
atomiks:claude/base-ui-issue-5594-9a5b14

Conversation

@atomiks

@atomiks atomiks commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

Fixes #5594

The forked arrow wrapper spread baseArrow(options) and then re-set options. When a downstream minifier inlines the base call and flattens the spread, the emitted literal contains two options keys, and esbuild logs a duplicate-object-key warning on every build (seen in OpenNext/Wrangler deploys). Runtime behavior was unaffected since the last key wins.

Changes

Only arrow is forked locally; offset and inline come from @floating-ui/react-dom 2.1.9, which already includes the upstream fix. The local Preview Card inline middleware and adaptiveOrigin are plain literals without options, so they cannot hit this.

@atomiks atomiks added type: bug It doesn't behave as expected. scope: all components Widespread work has an impact on almost all components. labels Sep 1, 2026
@pkg-pr-new

pkg-pr-new Bot commented Sep 1, 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@5606
    
    pnpm add https://pkg.pr.new/mui/base-ui/@base-ui/utils@5606
    

commit: 671c467

@code-infra-dashboard

code-infra-dashboard Bot commented Sep 1, 2026 •

Copy link
Copy Markdown

Bundle size

Bundle Parsed size Gzip size
@base-ui/react 🔺+32B(+0.01%) 🔺+11B(+0.01%)

Details of bundle changes

Performance

Total duration: 1,245.98 ms -13.17 ms(-1.0%) | Renders: 76 (+0) | Paint: 2,022.22 ms +6.91 ms(+0.3%)

Test Duration Renders
Select mount (200 instances) 164.85 ms 🔺+38.00 ms(+30.0%) 3 (+0)
Combobox type — 500 items, all stay mounted (type "Row ") 39.18 ms 🔺+9.05 ms(+30.0%) 11 (+0)
Combobox type — 500 items, narrows to ~11 (type "Row 25") 42.38 ms 🔺+7.96 ms(+23.1%) 15 (+0)
Dialog mount (300 instances) 30.33 ms 🔺+5.27 ms(+21.0%) 1 (+0)

11 tests within noise — details

Metric alarms

Test Metric Change
Select mount (200 instances) bench:paint 🔺 +49.26 ms
Combobox type — 500 items, all stay mounted (type "Row ") bench:paint#combobox-open 🔺 +15.46 ms
Combobox type — 500 items, all stay mounted (type "Row ") bench:paint 🔺 +15.46 ms

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

@netlify

netlify Bot commented Sep 1, 2026

Copy link
Copy Markdown

✅ Deploy Preview for base-ui ready!

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

@atomiks
atomiks marked this pull request as ready for review September 1, 2026 06:39
@atomiks
atomiks merged commit 72acd31 into mui:master Sep 1, 2026
7 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope: all components Widespread work has an impact on almost all components. type: bug It doesn't behave as expected.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[floating-ui-react] Duplicate "options" key in arrow middleware causes esbuild warning when bundled

1 participant