as-model 0.1.22 → 0.1.23
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/dist/index.js +1 -1
- package/esm/updater/index.js +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -621,7 +621,7 @@
|
|
|
621
621
|
if (u.isDestroyed) {
|
|
622
622
|
return u;
|
|
623
623
|
}
|
|
624
|
-
if (!u.initialized && !
|
|
624
|
+
if (!u.initialized && !hasState && !hasInitialState) {
|
|
625
625
|
throw new Error("The updater has not been initialized, it should be updated with a state for initializing.");
|
|
626
626
|
}
|
|
627
627
|
if (isInitialize) {
|
package/esm/updater/index.js
CHANGED
|
@@ -53,7 +53,7 @@ function createUpdateFn(updater, middleWare) {
|
|
|
53
53
|
if (u.isDestroyed) {
|
|
54
54
|
return u;
|
|
55
55
|
}
|
|
56
|
-
if (!u.initialized && !
|
|
56
|
+
if (!u.initialized && !hasState && !hasInitialState) {
|
|
57
57
|
throw new Error(
|
|
58
58
|
"The updater has not been initialized, it should be updated with a state for initializing."
|
|
59
59
|
);
|