-
-
Notifications
You must be signed in to change notification settings - Fork 5
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
RFC: Stack Routing API #20
Comments
A few thoughts on this:
I'd argue RoutingStack is more like List or String - it's really just a Bag of Data, so people shouldn't need to write a custom implementation (just like we don't have IString). People will ask for it, and you should Tell Them No :) Instead, make RoutingStack so easy to construct (i.e. with a constructor that optionally lets you fill in the stack explicitly for test time) and hackable that people won't need to. |
@paulcbetts The moments where words matter. I agree that the collection of data can be as basic as possible.
I agree with there should only ever be a single modal present at a time. I am not sure that ReactiveUI should impose a limit in it's implementation that doesn't exist on the target platform. |
I would seperate the concepts of modal and navigation into two instances of the same interface. That way it's easier for the user to add new stacks to support y platform. |
Also reduces the number of methods in your interfaces eg navigation.Modal.Pop(true) |
|
Hello everyone, I think these features are worth adding to the framework:
|
Cool thanks @bouteminequalid I'm sure Rodney will take it into consideration |
@BoutemineOualid All of these I believe are already captured on the Sextant Repository . If not feel free to make sure they are captured. |
I have a working WPF version, based on WPF-Frame. |
|
Add Stack Routing API
Summary
This RFC is based on https://github.com/reactiveui/ReactiveUI/issues/1107
The current implementation of
RoutingState
exposes navigation as a set of commands on anObservableCollection<IRoutableViewModel>
Xamarin.Forms has built in navigation based on a stack data structure.
Motivation
The current
RoutingState
currently has no support for the following concerns:I am proposing we introduce a reactive abstraction base on Custom Routing in ReactiveUI. This would provide view model based navigation and better reflect stack navigation patterns.
Discussion
I know there are benefits to the current
RoutingState
implementation, I want to make this an option for stack based navigation platforms.Questions
How do we handle platforms that don't have a concept of a modal stack?
If we implement passing parameters does it make sense for all platforms?
Do we allow consumers to implement their own
IRoutingStack
and register it for use with ReactiveUI?Are there any performance concerns or improvements that could come from this change?
The text was updated successfully, but these errors were encountered: