Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to set some view state along with setHistory? #222

Closed
letitfly opened this issue Jan 24, 2017 · 3 comments
Closed

how to set some view state along with setHistory? #222

letitfly opened this issue Jan 24, 2017 · 3 comments

Comments

@letitfly
Copy link

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.

@Zhuinden
Copy link

Initial parameters should be part of the Key.

@letitfly
Copy link
Author

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

@Zhuinden
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants