@slimlib/store 2.2.5 → 2.2.6
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/index.mjs +2 -2
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -681,6 +681,8 @@ const effect = (callback, eager = 0 ) => {
|
|
|
681
681
|
const dispose = () => {
|
|
682
682
|
|
|
683
683
|
if (!disposed) {
|
|
684
|
+
if (effects)
|
|
685
|
+
effects[effectIndex] = undefined;
|
|
684
686
|
|
|
685
687
|
disposed = true;
|
|
686
688
|
|
|
@@ -717,8 +719,6 @@ const effect = (callback, eager = 0 ) => {
|
|
|
717
719
|
runner();
|
|
718
720
|
}
|
|
719
721
|
catch (error) {
|
|
720
|
-
if (!disposed && effects)
|
|
721
|
-
effects[effectIndex] = undefined;
|
|
722
722
|
dispose();
|
|
723
723
|
throw error;
|
|
724
724
|
}
|