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

Add useMultiModal hook #66

Open
dawsonbooth opened this issue Jun 12, 2023 · 1 comment
Open

Add useMultiModal hook #66

dawsonbooth opened this issue Jun 12, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@dawsonbooth
Copy link
Member

Often, multiple modals are shown in sequence, serving as pages to one single conceptual modal. Rather than maintaining state that is updated with each modal action (often leading to the need for type assertions), we should have a hook that allows for a functional "bridge" between pages.

@dawsonbooth dawsonbooth added the enhancement New feature or request label Jun 12, 2023
@dawsonbooth
Copy link
Member Author

This can probably be abstracted to a more general useFlow hook, as the flow concept is not specific to modals

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant