MVCoconut / coconut.ui

Wow, such reactive view! Much awesome!
The Unlicense
89 stars 9 forks source link

Should be able to trigger Views lifecycle events also if just a subview updates #15

Closed grosmar closed 5 years ago

grosmar commented 6 years ago

If I have a @:state or @:attr in a View class and it's only consumed by a subelement, then there are no lifecycles fired in my View class, however maybe I want to do some computation based on them.

The only hack I found so far, to reference these properties in the beginning of the render() function, but it's not really nice.

back2dos commented 5 years ago

You can now declare states and attributes as tracked