Skip to content

Add onLayoutChanged prop to Group#599

Merged
bvaughn merged 1 commit intomainfrom
issue/598/onLayoutChanged
Jan 12, 2026
Merged

Add onLayoutChanged prop to Group#599
bvaughn merged 1 commit intomainfrom
issue/598/onLayoutChanged

Conversation

@bvaughn
Copy link
Owner

@bvaughn bvaughn commented Jan 11, 2026

New callback notified of when a Group's layout has been modified by an interaction that is complete (aka "pointerup" event has been fired).

The docs differentiate the new callback from the old onLayoutChange method like so:
Screenshot 2026-01-11 at 5 56 32 PM

The useDefaultLayout hook has also been updated to return both onLayoutChange and onLayoutChanged callbacks. The recommended method to use is onLayoutChanged but both are supported for backwards compatibility purposes. The documentation has also been updated to mark the debounce param as no longer needed.
Screenshot 2026-01-11 at 6 02 10 PM

Resolves #593

@vercel
Copy link

vercel bot commented Jan 11, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
react-resizable-panels Ready Ready Preview Jan 12, 2026 1:52am

@bvaughn bvaughn force-pushed the issue/598/onLayoutChanged branch from d1aa733 to ff05812 Compare January 12, 2026 01:52
@bvaughn bvaughn merged commit db1bc9d into main Jan 12, 2026
7 checks passed
@bvaughn bvaughn deleted the issue/598/onLayoutChanged branch January 12, 2026 01:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature Request: Add onResizeStop callback to Panel

1 participant