Giter VIP home page Giter VIP logo

Comments (3)

rwjblue avatar rwjblue commented on May 31, 2024

This sounds quite a bit like an issue that @wagenet was describing to me in an offline conversation. 🤔

from ember-render-modifiers.

chriskrycho avatar chriskrycho commented on May 31, 2024

@rwjblue I found this via another discussion; this is just a variant of the same issue you and I hit debugging internally a few weeks ago.

from ember-render-modifiers.

fpauser avatar fpauser commented on May 31, 2024

Nearly the same observations here, but with a 'single' model being returned from the model-hook.

Invoking a component like this in the route template:

<FooComponent @model={{@model}} />

Observing @model changes in the component template like this:

<div
  class="foo-component"
  {{did-update this.handleModelUpdate @model}}
  ...attributes
>
  FOO
</div>

Problem: the handleModelUpdate action gets triggered when switching sub-routes although its own route is unchanged and the model hook never fired. Changing the model param value from @model to this.model fixes it:

<FooComponent @model={{this.model}} />

from ember-render-modifiers.

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.