I'm using redux-logic to handle the business logic of my react-redux app.
I have component A
with some fields. outside of this component, I have other components, that a user can click on them, and call actions.
while do some things in component A, the user can click on those other components.
What is the best way to 'catch' those calls, but first show some popup that says 'hey, are you sure?' and if the user click 'ok' - fire those calls?
so far i just managed to do something like this:
- user call an action from component B for example (while still have unfinished business in component A)
- the the logic that listen to this call, check if we are in dirty mode. If it is, we reject the call.
two things that not feels right for me :
- I need to implement this checking in EVERY call
- it does not tells me to show the pop up.