Suppose we have a saga to handle authentication of an user like in your example.
What bothers me is that I'm not sure the behavior would be correct when associated with time-travel debugging. I mean if the saga has an initial variable let userConnected = false, then the user connects so userConnected = true, and then we time travel back to the beginning. Here the saga will still have userConnected = true right?
But I'm not sure it's actually a problem as this project is a middleware and what I understand of Redux devtools is that during time travel the actions do not go through the middleware chain again so the saga would not change state.
What about hot reloading of Saga code? I'm not sure here it will work at all either but not sure it is really possible to do something nice about it right?
Suppose we have a saga to handle authentication of an user like in your example.
What bothers me is that I'm not sure the behavior would be correct when associated with time-travel debugging. I mean if the saga has an initial variable
let userConnected = false, then the user connects souserConnected = true, and then we time travel back to the beginning. Here the saga will still haveuserConnected = trueright?But I'm not sure it's actually a problem as this project is a middleware and what I understand of Redux devtools is that during time travel the actions do not go through the middleware chain again so the saga would not change state.
What about hot reloading of Saga code? I'm not sure here it will work at all either but not sure it is really possible to do something nice about it right?