For example, given an element x-baz with property block as follows:
static get properties() {
return {
bar: {
type: Foo,
initial: () => new Foo(),
},
};
}
Newly created instances of <x-baz> will reuse the same instance of Foo. In my case this creates an issue when attempting to destroy unwanted copies of x-baz. Because the reference is shared, any newly created <x-baz> will point to the original Foo
For example, given an element
x-baz
with property block as follows:Newly created instances of
<x-baz>
will reuse the same instance ofFoo
. In my case this creates an issue when attempting to destroy unwanted copies ofx-baz
. Because the reference is shared, any newly created<x-baz>
will point to the originalFoo
Happy to create a repro case if it helps