eBay / nice-modal-react

A modal state manager for React.
https://ebay.github.io/nice-modal-react
MIT License
1.96k stars 110 forks source link

useModal and removeAll() #15

Closed czkoudy closed 2 years ago

czkoudy commented 2 years ago

Hi,

Absolutely love this lib. It helped me to resolve many issues i was having with modals, and its much cleaner now as well.

However, as iam still a beginner in react and javascript, could you help me with implementing removeAll() method?.

For example i have a modal for editing user, in there is an option to delete said user which will prompt confirm modal. Once confirmed ,confirm modal will close using remove() however the edit user modal will still be open.

Could you please help.

Thank you

czkoudy commented 2 years ago

Nevermind. I have sorted it by using promises and resolve(). Sorry :-)