Giter VIP home page Giter VIP logo

Comments (4)

ghempton avatar ghempton commented on July 29, 2024

I'm going to mark this as an enhancement. The issue is that lazy models do not make their associations available until they are loaded. One possible fix would be to make lazy models return lazy models for their associations as well.

from epf.

belluzj avatar belluzj commented on July 29, 2024

This would be really great, especially if the lazy associations were to fill themselves with content later.
It would be very useful to me because most of my routes use relationships as their models (to get auto-updating).

It works well when navigating from to root route to sub routes, but is does not when getting directly to a sub route with an url. (because the relationships along the way are not available, I think).

I also had problems when trying to observe properties of one model from another through relationships: EPF complained that something should be attached to a session. I suppose it comes from LazyModels, because I saw that a lot in the debugger :) but I can't be sure.

from epf.

jimsynz avatar jimsynz commented on July 29, 2024

is there a workaround for this issue?

from epf.

jimsynz avatar jimsynz commented on July 29, 2024

FYI, this can also happen if you forget to pass the model to the link-to :)

from epf.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.