Replace state from component constructor entirely

This commit is contained in:
Talia 2024-01-10 13:31:42 +01:00
parent b51732636d
commit fb000ba7a3
1 changed files with 1 additions and 1 deletions

View File

@ -269,7 +269,7 @@ export const component = (generator, name) => {
}
})
attributeObserver.observe(this, {attributes: true})
this.replaceChildren(generator(this.state, this))
this.replaceChildren(generator(this))
}
}
customElements.define(name, Element)