You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been enjoying using the Swift Composable Architecture over the last year. It comes with a promising sell and it mostly pulls it off. Thing is, I'm having a little trouble sharing state across my apps and am not sure the best way forward.
I've created a little example project and am wondering the best way to go about implementing the minimum amount of code to get it working.
With this example project I hope to demonstrate a problem that keeps popping up in projects I've used TCA with, along with a couple of potential solutions. It doesn't take much complexity for the nesting state issue to show up. Making an app that navigates between different modules via a push, or presentation sheet is enough to start facing this issue.
I've added and described three possible solutions to this problem, but they all have different downsides. I'm hoping that I'm missing something simple, and that one of you have a better solution that I! 😀
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I've been enjoying using the Swift Composable Architecture over the last year. It comes with a promising sell and it mostly pulls it off. Thing is, I'm having a little trouble sharing state across my apps and am not sure the best way forward.
I've created a little example project and am wondering the best way to go about implementing the minimum amount of code to get it working.
With this example project I hope to demonstrate a problem that keeps popping up in projects I've used TCA with, along with a couple of potential solutions. It doesn't take much complexity for the nesting state issue to show up. Making an app that navigates between different modules via a push, or presentation sheet is enough to start facing this issue.
I've added and described three possible solutions to this problem, but they all have different downsides. I'm hoping that I'm missing something simple, and that one of you have a better solution that I! 😀
Please check out a more detailed brief of the problem in the repo, any ideas are appreciated.
https://github.com/wtsnz/swift-composable-architecture-nesting
Beta Was this translation helpful? Give feedback.
All reactions