Giter Club home page Giter Club logo

Comments (6)

GavinJoyce avatar GavinJoyce commented on September 28, 2024

@Maarius thanks for reporting this. It's likely that as we're calling this.set('actionReceiver', proxy); in an afterRender, a rerender is happening.

I've come across similar behaviour when trying our app out with Glimmer and we've been experimenting with alternative mechanisms of sending inbound actions to components that avoid the this.set in the afterRender. I'll post more here when we've completed our experiments.

from ember-component-inbound-actions.

jamesdixon avatar jamesdixon commented on September 28, 2024

@GavinJoyce any update on this? Cheers.

from ember-component-inbound-actions.

GavinJoyce avatar GavinJoyce commented on September 28, 2024

@Maarius @jamesdixon I've created a spike which seems to work pretty well:

screen shot 2017-03-02 at 11 13 36

The name form uses the new mechanism, the address form uses the old

from ember-component-inbound-actions.

digitalbreed avatar digitalbreed commented on September 28, 2024

Any news on that? I came across the issue by accident with 2.1.2 when I observed my didReceiveAttrs hook being triggered twice even though no attributes had been changed in the business logic. Checked the linked spike but it seems like there's no final conclusion yet?

from ember-component-inbound-actions.

GavinJoyce avatar GavinJoyce commented on September 28, 2024

@digitalbreed I haven't made any further progress spike, mainly as I think the use of ember-component-inbound-actions is an anti-pattern in Ember 2.0+. Contextual components are a much better solution.

from ember-component-inbound-actions.

andyhot avatar andyhot commented on September 28, 2024

Agreeing with @GavinJoyce on the anti-pattern side of things but having to support existing code and 'control' third party components (+ experiencing re-renders with ember-component-inbound-actions) led me to create https://github.com/andyhot/ember-cli-puppet

Usage is almost the same as ember-component-inbound-actions though you do get more power as to who receives the component instance - @digitalbreed take a look and ping me if that doesn't solve your problems

from ember-component-inbound-actions.

Related Issues (16)

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.