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

[@mantine/modals] Add updateModal and updateContextModal Functions for Dynamic Modal Updates #7104

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

pfo-omicsstudio
Copy link
Contributor

This PR adds two new functions, updateModal and updateContextModal, enabling dynamic updates to both standard and context modals. These functions allow modals to remain open and update their content, title, and settings mid-operation, ideal for async tasks or mutations where the modal content needs to change without closing.

I also added Storybook examples to demonstrate these updates in action, as shown in the videos below.

0c0efb4852dd38da05ac3ce63a42f236.mp4
9b473de345bd3ea6839c8cc9ea358e14.mp4

Feedback on the UPDATE reducer function is welcome, as I’m unsure if there’s a cleaner approach to implementing this functionality.

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.

1 participant