@estjs/template 0.0.17-beta.2 → 0.0.17-beta.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.
@@ -1,4 +1,4 @@
1
- import { getActiveScope, runWithScope, onCleanup, __objRest, createScope, disposeScope, __async } from './chunk-R6JICOKI.dev.js';
1
+ import { getActiveScope, runWithScope, onCleanup, __objRest, createScope, disposeScope, __async } from './chunk-PYFF2HI3.dev.js';
2
2
  import { normalizeClassName, SPREAD_NAME, isObject, warn, startsWith, isSpecialBooleanAttr, isBooleanAttr, includeBooleanAttr, isSymbol, isString, isArray, kebabCase, camelCase, capitalize, HYDRATION_ANCHOR_ATTR, isBrowser, error, isPromise, isFunction, isOn, coerceArray } from '@estjs/shared';
3
3
  import { effect, shallowReactive, isSignal, isComputed, isReactive, signal } from '@estjs/signals';
4
4
 
@@ -930,6 +930,7 @@ var Component = class {
930
930
  for (const key of Object.getOwnPropertyNames(this.reactiveProps)) {
931
931
  delete this.reactiveProps[key];
932
932
  }
933
+ this.state = 0 /* INITIAL */;
933
934
  }
934
935
  /**
935
936
  * Apply props that bind to the root DOM element rather than flowing into
@@ -1067,8 +1068,8 @@ function createApp(component, target) {
1067
1068
  return {
1068
1069
  root: rootNode,
1069
1070
  unmount: () => {
1070
- disposeScope(scope);
1071
1071
  rootNode == null ? void 0 : rootNode.destroy();
1072
+ disposeScope(scope);
1072
1073
  }
1073
1074
  };
1074
1075
  }
@@ -1100,8 +1101,8 @@ function hydrate(component, target) {
1100
1101
  return {
1101
1102
  root: rootNode,
1102
1103
  unmount: () => {
1103
- disposeScope(scope);
1104
1104
  rootNode == null ? void 0 : rootNode.destroy();
1105
+ disposeScope(scope);
1105
1106
  }
1106
1107
  };
1107
1108
  }
@@ -1815,6 +1816,7 @@ function defineClientAsyncComponent(loader, options) {
1815
1816
  };
1816
1817
  const render = (fn, fnProps) => {
1817
1818
  if (!alive) return;
1819
+ if (owner && owner.isDestroyed) return;
1818
1820
  if (viewScope) {
1819
1821
  disposeScope(viewScope);
1820
1822
  viewScope = null;
@@ -1930,9 +1932,7 @@ function For(props) {
1930
1932
  };
1931
1933
  const clearFallback = () => {
1932
1934
  for (const node of fallbackNodes) {
1933
- if (node.parentNode) {
1934
- node.parentNode.removeChild(node);
1935
- }
1935
+ removeNode(node);
1936
1936
  }
1937
1937
  fallbackNodes = [];
1938
1938
  };