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
In the testbed code the ViewModel of the LoginScreen is created within the View itself: @StateObject var viewModel = LoginScreenViewModel()
When the ViewModel is created i.e. in the Coordinator like this (before the Coordinator is created): LoginScreen(viewModel: loginViewModel)
Then the RouterObject fails to retrieve the Router because it's only done once in the constructor of the RouterObject: self.retreived = storage.retrieve()
The RouterObject fails to retrieve the Coordinator and navigation doesn't work.
The text was updated successfully, but these errors were encountered:
savage7
added a commit
to savage7/stinsen
that referenced
this issue
Aug 23, 2021
In the testbed code the ViewModel of the LoginScreen is created within the View itself:
@StateObject var viewModel = LoginScreenViewModel()
When the ViewModel is created i.e. in the Coordinator like this (before the Coordinator is created):
LoginScreen(viewModel: loginViewModel)
Then the RouterObject fails to retrieve the Router because it's only done once in the constructor of the RouterObject:
self.retreived = storage.retrieve()
The RouterObject fails to retrieve the Coordinator and navigation doesn't work.
The text was updated successfully, but these errors were encountered: