Support for multiple infinity-models?
See original GitHub issueHey guys,
as far as I understand ember-infinity
is working with RSVP.hash in the model hook. Then I can specify the infinity model with modelPath
in the router.
However can I also have multiple infinity models in RSVP.hash? Guess not as there is no way to specify both paths, right?
Thanks Andreas
Issue Analytics
- State:
- Created 7 years ago
- Reactions:1
- Comments:5 (2 by maintainers)
Top Results From Across the Web
load multiple models in an infinity route · Issue #67 - GitHub
The reason we can't have two infinityModels on the same route is related to the RouteMixin assuming a single model. Two routes (regardless...
Read more >INFINITI InTouch Support & FAQs
Have a question about InTouch feature functionality or setup? Explore our FAQs & Support page for information on subscriptions, phone compatibility, and more....
Read more >Infinity Fundamentals, Part II: Building Lists for Competitive Play
A Support Specialist can certainly become an Active Specialist in the late game. The important thing is to have a pre-game idea of...
Read more >Infinity review, a model review blog, returns
A long time ago I used to run a blog called Infinity Review, where I reviewed Infinity miniatures. I've loved Infinity's miniature line...
Read more >ember-infinity - npm
Let's look at a more complicated example using multiple infinity models in a route. Super easy! import Route from '@ember/routing/route'; ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
hi @deepflame - that’s correct. Right now - we’re limited to one infinity model per route.
That said - I have an experimental branch that supports multiple models (that I’m using in production) here: https://github.com/hhff/ember-infinity/tree/feature/modularize-infinity-model
Of course - it’s totally alpha, it’s a big rewrite of the Ember Infinity internals. I’m working to stabilize this work without breaking changes - and thus I can’t really provide any major help or support with it until it’s released.
That said, if you’d like to contribute to the branch - I’d love for you to take a look at it!~
Added to readme. https://github.com/ember-infinity/ember-infinity/blob/master/README.md