NOTE
Unfortunately props definition doesn't work via mixins, because they are defined as static getter on the instance. This is unfortunate, but that's how mixins and inheritance work. Maybe skatejs could do better job here to allow this composition pattern, otherwise I'm afraid we would need to create HOC which are directly mutating that static props definition.
Details: https://github.com/skatejs/skatejs/issues/1077
So after research and discussion with Trey, we have a winner which works! yay! 🚀
renderCallback
1 and 2 http://codepen.io/Hotell/pen/EZRRGO?editors=1010 4 https://github.com/wc-catalogue/blaze-elements/tree/mh/mixins-with-new-ts 5 http://codepen.io/Hotell/pen/RKJyOE
NOTE Unfortunately props definition doesn't work via mixins, because they are defined as static getter on the instance. This is unfortunate, but that's how mixins and inheritance work. Maybe skatejs could do better job here to allow this composition pattern, otherwise I'm afraid we would need to create HOC which are directly mutating that static props definition. Details: https://github.com/skatejs/skatejs/issues/1077
So after research and discussion with Trey, we have a winner which works! yay! 🚀