Quantcast
Viewing all articles
Browse latest Browse all 4826

Variable lifecycle?

@kimek wrote:

It can sounds strange… My issue is: this.set(‘x’) -> {{x}} as show div -> get div position. this.set(‘x’,‘show’) won’t give me any hooks adding didUpdateAttrs will run all the time when I will change any attribute on component (not mention that I need to add that to all component with one variable ) setTimeout nope

Is there any way to do similar thing to this.set(‘x’,‘y’).then() when all x will change across site (on view and code) if that make sense.

This variable is not computed to any properties.

it’s just a simple variable to show div and get positions on which I’ve spend now 6 hours.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4826

Trending Articles