@rettangoli/fe 1.0.2 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -85,6 +85,13 @@ export const runAttributeChangedComponentLifecycle = ({
|
|
|
85
85
|
return;
|
|
86
86
|
}
|
|
87
87
|
|
|
88
|
+
// Browsers can invoke attributeChangedCallback before connectedCallback.
|
|
89
|
+
// In that phase the component has no render target and transformed
|
|
90
|
+
// handlers are not wired yet, so update handlers must not trigger render.
|
|
91
|
+
if (instance.isConnected === false || !instance.renderTarget) {
|
|
92
|
+
return;
|
|
93
|
+
}
|
|
94
|
+
|
|
88
95
|
if (instance.handlers?.handleOnUpdate) {
|
|
89
96
|
const runtimeDeps = createRuntimeDepsForInstance({ instance });
|
|
90
97
|
const changes = buildOnUpdateChanges({
|