Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
I am wondering how does the project detect re-renders, in the counter example, you increment the prop of the class directly. How do you detect it's time to render again because of that side effect?
PD; Very nice project, no dependencies and great ideas. Looking forward more!
Thanks! Development has been a little slow recently because of work, but great to hear positive feedback.
Typescene keeps track of bindings (in the example there is a binding in the view), and then, when the target component is constructed, the bound properties are defined with a getter and setter. These update 'bound' binding(s) immediately - in this case a property of the view component.
The view property is observed in the same way, and any change updates the DOM.