IfLetStore and Effect cancellation on view disappear

Yep

For that reason, in my example project, I stored the effect id in the state struct

I fear it is a bit scary to store it in the state as the state tree is optional and leaving the state "dangling around" for a little while is a solution that might cause new issues.

New thread started here How can The Composable Architecture really become composable? - #2 by hfossli. I thought it would be a good idea to summarise and tell the story of the problem step by step.

1 Like