-
-
Notifications
You must be signed in to change notification settings - Fork 463
[dialog][alert dialog] Pass payload to onOpenChange callback #4984
Copy link
Copy link
Open
Labels
component: alert dialogChanges related to the alert dialog component.Changes related to the alert dialog component.component: dialogChanges related to the dialog component.Changes related to the dialog component.has workaroundThere’s a bug, but users have a complete workaround, so no urgent fix or release is needed.There’s a bug, but users have a complete workaround, so no urgent fix or release is needed.
Metadata
Metadata
Assignees
Labels
component: alert dialogChanges related to the alert dialog component.Changes related to the alert dialog component.component: dialogChanges related to the dialog component.Changes related to the dialog component.has workaroundThere’s a bug, but users have a complete workaround, so no urgent fix or release is needed.There’s a bug, but users have a complete workaround, so no urgent fix or release is needed.
Fields
Give feedbackNo fields configured for issues without a type.
Feature request
Summary
Pass
payloadto theonOpenChangecallback ofDialog.RootandAlertDialog.Root:Workaround
Access
payloadvia the internalstoreproperty ofDialog.Handle:Motivation
I want the ability to trigger payload-specific side effects on open change. For example, triggering an
onCanceleffect on ESC. This would be helpful for integrating withuseBlockerfrom Tanstack Router: