SCION-CORE icon indicating copy to clipboard operation
SCION-CORE copied to clipboard

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

Open aksonov opened this issue 8 years ago • 0 comments

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?

aksonov avatar Jun 22 '16 07:06 aksonov