Repository navigation
Conversation
commit: |
Bundle size
PerformanceTotal duration: 1,323.07 ms ▼-282.75 ms(-17.6%) | Renders: 52 (🔺+2) | Paint: 2,060.24 ms ▼-410.16 ms(-16.6%)
…and 7 more — details 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. |
Critical (must fix before merge)C1 — Tooltip popup no longer sets
|
5bb20f7 to
6f921b3
Compare
| enabled: !preventUnmountingOnClose, | ||
| enabled: mounted && !open && !preventUnmountingOnClose, | ||
| open, |
There was a problem hiding this comment.
This line fixes unmount/teardown perf:
| Contained triggers warm unmount (all) | 119.95 ms | 17.25 ms | -102.7 ms (-85.6%) |
|---|
romgrk
left a comment
There was a problem hiding this comment.
It would have been really nice to split this PR into conceptual chunks, reviewing 2k+ lines is not really fun nor safe, and we can't see the individual effect of each change (e.g. adding fastComponent(), avoiding work before mount, ...).
|
@romgrk yeah totally fair 😅 I'll split this into multiple PRs so it's easier to review and we can see the perf differences incrementally. At least I got it into (what I think should be) mostly the final state for perf + bundle size though so it shouldn't be that hard to split it from here |
| isDrawer: boolean; | ||
| } | ||
|
|
||
| export function DialogInteractions({ |
There was a problem hiding this comment.
Could be worth using fastComponent on this one since it's used a lot and has at least 5 selectors
There was a problem hiding this comment.
It only affects opening, so not really. One single dialog opening is not a perf cliff.
(Also I'm drafting this PR, as we should start with a review on #4661, we'll get back to this once that lands)
|
Creating separate PRs for:
|
This PR now focuses on the popup performance work that is still in this branch after rebasing on the interaction-split changes from
master. It keeps popup coordination in the popup store, removes the remaining generic interaction wrapper paths, and limits popup-root interaction prop syncing to the times a popup is actually open or mounted.Changes
FloatingRootStoresetup, including floating ids, nesting, trigger maps, and shared popup selectors.useInteractions/useRolewrapper paths with direct prop merging in popup roots, Select, Combobox, and Floating UI tests.open || mountedwhere safe, while keeping Menu on its more guarded path.PopupTriggerMap.Notes
useInteractionsfrom their prop plumbing; the main perf work here is still the popup store/root path.