Quantcast
Channel: Ember.JS - Latest topics
Viewing all articles
Browse latest Browse all 4826

Ember parent child component, how to avoid unnecessary life cycle hook from triggering?

$
0
0

@kumkanillam wrote:

I have the below component structure in my app,
table-model > header-top > generic-filter > attribute-component-design > psdropdown-with-enums-vertical-collection > power-select-multiple > customized options component.

When I mouse over the power-select drop down, its triggering the all of the parents willUpdate,willRender,didUpdate,didRender life cycle component methods.

The problem is, I do have some jquery-ui plugin usage which forces me to write some heavy operation for didRender of the some of the components.

What is wrong with my approach? and how can I avoid this unnecessary life cycle hook method from triggering?.

Note:
- I provided ember-twiddle and with power select in component twiddle and more context in SO question.
- It's not triggering for ember version 2.9.1 and below.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4826

Trending Articles