Replace state from component constructor entirely
This commit is contained in:
parent
b51732636d
commit
fb000ba7a3
1 changed files with 1 additions and 1 deletions
2
state.js
2
state.js
|
@ -269,7 +269,7 @@ export const component = (generator, name) => {
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
attributeObserver.observe(this, {attributes: true})
|
attributeObserver.observe(this, {attributes: true})
|
||||||
this.replaceChildren(generator(this.state, this))
|
this.replaceChildren(generator(this))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
customElements.define(name, Element)
|
customElements.define(name, Element)
|
||||||
|
|
Loading…
Reference in a new issue