Repository navigation
[all components] Fix preventBaseUIHandler runtime wrapping - #4330
Conversation
Codex ReviewOverviewThis patch makes FindingsNo blocking issues found in this patch. 1. ℹ️ [Informational] Browser perf checks remain effectively flat overall, with only small route-level variance in focused opener testsImpact: The change sits in shared event and render-prop plumbing, so even small regressions would fan out across many components. The main risk area is open and mount work in controls that rely heavily on shared trigger/merge paths. Evidence: I compared the current PR head against the latest Stress-route runs:
Focused select opener reruns:
Recommendation: This still looks like the right tradeoff to land. If follow-up perf work is needed, prefer targeted hot-path simplifications inside the shared merge path over broader runtime machinery or component-by-component typing audits. Confidence: 4/5High confidence based on a full pass over the branch diff, focused regression coverage around the merge seed paths, fresh type/test verification, and repeated Chromium benchmarking against the latest Notes
|
6d57774 to
8281874
Compare
commit: |
Bundle size report
Check out the code infra dashboard for more information about this PR. |
✅ Deploy Preview for base-ui ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
1c78b6a to
2c486ca
Compare
2dbc511 to
011f6f7
Compare
6b56659 to
b1741d0
Compare
Fixes #4088
Summary
Make
preventBaseUIHandler()available at runtime for synthetic event handlers that flow through Base UI props, including lone handlers and single-propuseRenderElement()paths.Changes
mergeProps()so typed handlers receivepreventBaseUIHandler()at runtime.useRenderElement()so directBaseUIComponentPropsevent handlers get the same runtime behavior.mergeProps,useRenderElement,Menu.Item, andAccordion.Trigger.