feature: Add NavigateForResult
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 25/100
- Issue type
- Feature
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- csharp
- Domain
- mobile-dev
Research direction
Start by reading the navigation commands around Navigate.Execute and the IRoutableViewModel abstraction. Compare the proposed NavigateForResult API with the existing routing flow, including popup and full-page navigation. Done means a reusable viewmodel can emit a complex typed result back to its caller through the navigation pipeline.
Written by the indexing model from the issue text.
Description
I want to have a reusable viewmodel that can emit results back to the calling viewmodel.
If we can get something like a NavigateForResult with a generic type then that would be neat. Interactions are great but I believe they are best for very simple dialogs and simple results. What about a complex object? What if it's prompted as a popup, but as a full page? Yes we can subscribe to events from the ViewModel before passing it through to Navigate.Execute() but that just returns a IRoutableViewModel object and will make the pipeline less neat :D
ChooseContacts = ReactiveCommand.CreateFromObservable(() =>
HostScreen.Router.NavigateForResult.Execute(new ContactsResultViewModel())
.Select(contacts => /* transform result */));
We can do it by making a generic IRoutableViewModel<TResult> so the routing commands can listen to it's result.
- Dominant language
- C#
- Stars
- 160
- Forks
- 23
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from reactiveui/Sextant
-
支持Avalonia 12版本Open
Difficulty 4/5 3-5 days Newbie friendliness 22/100
reactiveui/Sextant#965 ·
-
bug
Difficulty 4/5 3-5 days Newbie friendliness 32/100
reactiveui/Sextant#769 ·
-
Dependency DashboardOpen
Difficulty 4/5 3-5 days Newbie friendliness 20/100
reactiveui/Sextant#754 ·
-
feature request
Difficulty 5/5 Over a week Newbie friendliness 25/100
reactiveui/Sextant#225 · 1 comment ·
-
feature request
Difficulty 5/5 Over a week Newbie friendliness 25/100
reactiveui/Sextant#150 · 4 comments ·
All issues in reactiveui/Sextant
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Facepunch/sbox-public#12456 ·
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
mcneel/rhino.inside-revit#1736 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
reactiveui/Primitives#254 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Kyrodan/KeeAnywhere#510 ·
-
area-Tools-ILLink untriaged
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day