Comments (6)
@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.
@GavinJoyce any update on this? Cheers.
from ember-component-inbound-actions.
@Maarius @jamesdixon I've created a spike which seems to work pretty well:
The name form uses the new mechanism, the address form uses the old
from ember-component-inbound-actions.
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.
@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.
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)
- Using in an each block HOT 1
- Release new version HOT 2
- release #20 HOT 3
- confusing version check HOT 1
- Usage with contextual components HOT 1
- Getting the return value of the action HOT 2
- DEPRECATION on 2.18
- New release HOT 6
- "Asynchronous side-effects" from component unit tests HOT 1
- Binding the actionReceiver of a component breaks concatenatedProperties
- Upgrade last version ember HOT 2
- nameForm undefined HOT 3
- this can not be used in controller init
- Ember 1.13 compatability HOT 4
- License question HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ember-component-inbound-actions.