Skip to content
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

Export useDialogContext in radix dialog #3274

Open
olafur164 opened this issue Dec 6, 2024 · 0 comments · May be fixed by #3275
Open

Export useDialogContext in radix dialog #3274

olafur164 opened this issue Dec 6, 2024 · 0 comments · May be fixed by #3275

Comments

@olafur164
Copy link

Feature request

Overview

I would like to have access to the useDialogContext. I'm using shadcn for components and one of the components is the Sheet component that uses Radix Dialog. What I want to do is https://www.radix-ui.com/primitives/docs/components/dialog#close-after-asynchronous-form-submission
But we are using the Sheet in the layout using nextjs combination of parallel and intercepting routes ( This might be the wrong way to do this but I'm investigating stuff) but then a child of this layout is what triggers closing the sheet. So in order to do this it is best to use react context. Which I can create myself but I don't any reason why this wouldn't just be exported from radix, is this a possibility?

@olafur164 olafur164 linked a pull request Dec 6, 2024 that will close this issue
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 a pull request may close this issue.

1 participant