question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support for multiple infinity-models?

See original GitHub issue

Hey 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:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
hhffcommented, Jan 3, 2017

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!~

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found