Skip to content

refactor(react-headless-components-preview): improve positioning types and performance#36192

Merged
mainframev merged 4 commits into
microsoft:masterfrom
mainframev:refactor/headless-popover-positioning
May 12, 2026
Merged

refactor(react-headless-components-preview): improve positioning types and performance#36192
mainframev merged 4 commits into
microsoft:masterfrom
mainframev:refactor/headless-popover-positioning

Conversation

@mainframev
Copy link
Copy Markdown
Contributor

@mainframev mainframev commented May 12, 2026

Refactor of usePositioning in @fluentui/react-headless-components-preview:

  • fix: tightened public type surface for PositioningProps, hiding unsupported features
  • refactor: extracted computePosition and debounce into dedicated utils with unit tests
  • refactor: usePlacementObserver simplified and now uses a debounced subscription
  • test: additional coverage in usePositioning.test.tsx

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 12, 2026

📊 Bundle size report

Package & Exports Baseline (minified/GZIP) PR Change
react-headless-components-preview
react-headless-components-preview: entire library
107.577 kB
31.646 kB
107.897 kB
31.819 kB
320 B
173 B

🤖 This report was generated against 0307f02ca1bc383b15fca2c2dc62ba2113fd7c5f

@github-actions
Copy link
Copy Markdown

Pull request demo site: URL

@mainframev mainframev requested a review from dmytrokirpa May 12, 2026 12:16
@mainframev mainframev merged commit db585d2 into microsoft:master May 12, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants