Replies: 1 comment
-
Does the "dependency" state require persistence? I don't think it should generally. Then it could be represented in a enum's associated type.
Makes accessing the state a bit trickier but more of an accurate model. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I've recently been using TCA to build my app, and I think TCA is very powerful for expressing the structure and state of the app. However, I've run into problems expressing state dependencies within the app through the nested form of struct.
One typical example is deep link, the design of deep link breaks this nested expression. For example,
nav://app/foo
may instructUINavigationController
to push a specificUIViewController
, which in the design of State requires adding the dependency of this state to theAppState
.The question is if the majority of UIViewControllers in the app are deep-link capable, will all the dependencies be tiled in the AppState, and if so, how will the state in the UINavigationController stack be expressed? Looking forward to someone answering my question!
Beta Was this translation helpful? Give feedback.
All reactions