-
Notifications
You must be signed in to change notification settings - Fork 698
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Dialog] Close the dialog after asynchronous form submission without declaring state #2864
Comments
I don't think it would be worth adopting this feature, since the Radix Primitive concept is meant to be more generic. But you can create this yourself in your applications if you really feel the need. |
I don't understand how this affects its generality. Its idea is the same as |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Feature request
Overview
Please consider introducing the Dialog.Consume component, which can receive
Function as Child Component
and pass functions likesetOpen
to the sub-components.This can make the code more concise and reduce the burden of state management.
Example:
or
The text was updated successfully, but these errors were encountered: