Skip to content
This repository has been archived by the owner on Sep 25, 2018. It is now read-only.

Is there any way to add state dynamically as child of current state? #29

Open
aksonov opened this issue Jun 22, 2016 · 0 comments
Open

Comments

@aksonov
Copy link

aksonov commented Jun 22, 2016

I like History state approach - ability to define some state like error handler, process error and then return to original state. However i've find out that it quits all current state hierarchy first. Is there any way not to quit all current states but open that state as 'child' of current state?

My use case is to have 'open profile for some user' screen for my app. It could be open from many places. If i would open it from some parent state or as 'history' state i will lose all current stack of states - but i want to render my app accordingly to this stack. Also this way i can't have several 'open profile' states in my app (but it is possible - user A can open profile B then check comments for profile B and then open profile C of author of comment).

Is there any way to add state dynamically? Or there is other way to accomplish it?

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

No branches or pull requests

1 participant