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
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
How should I handle native stacked navigation when saving state in the URL?
I have two screens:
announcement/[announcementId]
andcomment/[commentId]
. I fetch the announcement doing something akin to the following:When I click a comment on the announcement screen it fails due to the fact that
announcementId
is set to undefined.I would expect stacked screens to keep their navigation state, however, it seems not to be the case.
What is the canonical way to solve this?
Beta Was this translation helpful? Give feedback.
All reactions