Suggested pattern for navigating outside of Presenter #1578
-
Our app has the common use case of navigating the user to the log-in screen due to some asynchronous event (e.g. WebSocket message indicating the account password has changed, etc). I want to isolate the event listening and navigation instead of adding the same logic to each Which approach is recommended for this use case? How might one navigate in non- |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
You could create your own Navigator implementation that you pass down that internally observes this state, or hoist it up to the place where you create your back stack and pop the back stack directly |
Beta Was this translation helpful? Give feedback.
You could create your own Navigator implementation that you pass down that internally observes this state, or hoist it up to the place where you create your back stack and pop the back stack directly