Repository navigation
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
🦋 Changeset detectedLatest commit: eacddaa The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
|
Integration test results from github/github-ui PR: |
There was a problem hiding this comment.
🔵 Needs a closer look
With the Oxc upgrade retained, the mutable-closure revert needs compiler-enabled validation and the unexecuted 1600→1000→1600 viewport round trip to establish that the regression is fixed.
No open issues 🎉
What changed in this PR
This PR reverts the PageLayout pane-resize hook changes from #8731 to address a suspected viewport-resizing regression, while leaving its TreeView and dependency updates intact.
Changes:
- Restores closure-local variables for tracking viewport width, resize scheduling, and cleanup.
- Adds an
@primer/reactpatch changeset describing the restored resizing behavior.
| File | Description |
|---|---|
packages/react/src/PageLayout/usePaneWidth.ts |
Restores the previous resize-state tracking implementation. |
.changeset/restore-page-layout-resizing.md |
Records the PageLayout behavior restoration for a patch release. |
Review effort: Balanced
Restore PageLayout's pane-resize hook to its state before #8731 to address a suspected regression. Leave the TreeView and dependency updates from #8731 intact.
Changelog
New
Changed
Removed
Rollout strategy
Testing & Reviewing
In the Resizable Pane story, narrow the viewport from 1600px to 1000px and widen it again. The resize handle's maximum should drop and then return to its original value.