mitosis icon indicating copy to clipboard operation
mitosis copied to clipboard

webcomponent: separate methods from state object

Open PatrickJS opened this issue 3 years ago • 0 comments

It would be a lot easier to diff the state object if it was just values. Following what vue did and create another namespace for methods is a good idea.

this.context = new Map();
this.props = {};
this.state = {};
this.methods = {};

PatrickJS avatar May 21 '22 00:05 PatrickJS