Replies: 1 comment 1 reply
-
If we were to add an async Initialize method (eg InitializeAsync) that would be called during navigation immediately after constructor, would this make it easier for testing? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
On some app, we need to have conditional navigation depending on the application state. The fact that the initial navigation is done somewhere in uno.extensions, we have to workaround this so we somewhat control it afterwards.
// How we workaround it to control the initial navigation.
With that in mind, the fact that the startup logic is in parallel, it makes it impossible to test it, since we don't have a proper way to wait for it's conclusion properly. We were force to introduce hack, fortunately without add sleep.timer, so we could somehow isolate the startup logic
So we could do our testing like this
In summary, if we would have more control on initial navigation, it will make us understand more how it works while also being easier to test our custom initial navigation logic
Beta Was this translation helpful? Give feedback.
All reactions