Abstracting Our Redux Confirmation Modal Pattern
The text discusses the use of Redux Sagas for handling confirmation modals in applications. It explains that copying common patterns like confirmation modal actions can lead to a cluttered store, and introduces a Redux Saga pattern that simplifies this problem. This pattern involves using a ConfirmAction action to show the modal, then waiting for either a cancel or confirmed action from the user before proceeding with the final action. The text also briefly touches on the implementation of ActionModal components and how they can be customized without needing to store UI-specific details in Redux.
Company
Mux
Date published
June 24, 2019
Author(s)
Matthew McClure
Word count
490
Language
English
Hacker News points
None found.