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
Basically on startup the app will show AScreen with a variable value of nil to display a loading screen. The deeplinker will parse the link into the following path [AScreen(value: 20), BScreen()]. Since the deeplinker uses replace(path:) it will successfully replace AScreen but fails at presenting BScreen. Parsing the link so that the value of AScreen is nil will present BScreen fine. So it seems the issue is with the value changing.
After some more testing, modifying the equatable method will cause more issues (like with tab screens). This wouldn't be the best place to try and fix this issue.
Bug description
Basically on startup the app will show
AScreen
with a variable value ofnil
to display a loading screen. The deeplinker will parse the link into the following path[AScreen(value: 20), BScreen()]
. Since the deeplinker usesreplace(path:)
it will successfully replaceAScreen
but fails at presentingBScreen
. Parsing the link so that the value ofAScreen
is nil will presentBScreen
fine. So it seems the issue is with the value changing.Steps to reproduce
Example App
Using the code below seems to solve the issue
Expected behavior
App should navigate to
BScreen
even when the value inAScreen
changesEnvironment
Additional context
Related: #74 (comment)
The text was updated successfully, but these errors were encountered: