valdres 0.2.0-pre.19 → 0.2.0-pre.20
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 +5 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -821,6 +821,8 @@ var setAtoms = (pairs, data, initializedAtomsSet) => {
|
|
|
821
821
|
value = setValueInData(atom, value, data);
|
|
822
822
|
if (atom.onSet)
|
|
823
823
|
atom.onSet(value, data);
|
|
824
|
+
} else {
|
|
825
|
+
setValueInData(atom, value, data);
|
|
824
826
|
}
|
|
825
827
|
}
|
|
826
828
|
const result = new Set([...updatedAtoms, ...initializedAtomsSet]);
|
|
@@ -1106,7 +1108,7 @@ function storeFromStoreData(data, detach) {
|
|
|
1106
1108
|
delete data.scopes[scopeId];
|
|
1107
1109
|
return true;
|
|
1108
1110
|
}
|
|
1109
|
-
console.warn(`Scope still has ${scopedStoreData.scopeConsumers.size} consumers, will not detach`);
|
|
1111
|
+
console.warn(`Scope ${scopeId} still has ${scopedStoreData.scopeConsumers.size} consumers, will not detach`);
|
|
1110
1112
|
return false;
|
|
1111
1113
|
};
|
|
1112
1114
|
scopedStoreData.scopeConsumers.add(detach2);
|
|
@@ -1470,9 +1472,9 @@ var isFamilySelector = (state) => isFamilyState(state) && isSelector(state);
|
|
|
1470
1472
|
|
|
1471
1473
|
// src/index.ts
|
|
1472
1474
|
if (globalThis.__valdres__) {
|
|
1473
|
-
throw new Error(`Error! An instance of valdres is already loaded. Loaded: ${globalThis.__valdres__}. Attempted to load: ${"0.2.0-pre.
|
|
1475
|
+
throw new Error(`Error! An instance of valdres is already loaded. Loaded: ${globalThis.__valdres__}. Attempted to load: ${"0.2.0-pre.20"}`);
|
|
1474
1476
|
} else {
|
|
1475
|
-
globalThis.__valdres__ = "0.2.0-pre.
|
|
1477
|
+
globalThis.__valdres__ = "0.2.0-pre.20";
|
|
1476
1478
|
}
|
|
1477
1479
|
export {
|
|
1478
1480
|
store,
|