From b51732636dac730894aa455730344bfd6b16d0d3 Mon Sep 17 00:00:00 2001 From: DarkWiiPlayer Date: Wed, 10 Jan 2024 13:28:56 +0100 Subject: [PATCH] Add component as argument to state component constructor --- state.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)