square/flow

how to set some view state along with setHistory?

letitfly opened this issue · 3 comments

Suppose my app has the following 3 screens

Main (TabA, TabB)
DetailA
DetailB

click on item in TabA -> DetailA, click on item in TabB -> DetailB

Now I can set history (Main, DetailB), ideally I should also set the tab in Main to TabB to make UI
consistent. But that seems not possible.

My scenario is user clicking on a notification to open the app.

Initial parameters should be part of the Key.

Got it. It could work. But making two different keys (or more) out of a single tabbed screen is a little uncomfortable to me.

I tend to just add different parameters to the same key.