Loading Codable Representation of Navigation Stack with TCA #3312
Replies: 1 comment
-
Hi @giorgioETC, I personally would not recommend encoding/decoding the entire navigation Typically you would have a simpler data type that represents the bare essentials of data that can be persisted so that when restored you can construct a reason version of the |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a need to save and load a cached navigation stack during my application lifecycle. I'm new to TCA and am wondering if there is a way to achieve this? I've gone through the docs and past discussions and haven't seen anything regarding this. I had my screens implemented in an MVVM style using the codable property on NavigationPath and would load the cached stack using onAppear, but we want to rewrite our screens using TCA for testability and to add clarity to the complex state we are dealing with.
Beta Was this translation helpful? Give feedback.
All reactions