diff --git a/state.js b/state.js index 22e99a7..521b713 100644 --- a/state.js +++ b/state.js @@ -269,7 +269,7 @@ export const component = (generator, name) => { } }) attributeObserver.observe(this, {attributes: true}) - this.replaceChildren(generator(this.state)) + this.replaceChildren(generator(this.state, this)) } } customElements.define(name, Element)