valdres 0.2.0-pre.2 → 0.2.0-pre.4
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
CHANGED
|
@@ -187,7 +187,7 @@ var isProd = () => {
|
|
|
187
187
|
|
|
188
188
|
// src/lib/setValueInData.ts
|
|
189
189
|
var setValueInData = (atom, value, data) => {
|
|
190
|
-
if (isProd()) {
|
|
190
|
+
if (atom.mutable || isProd()) {
|
|
191
191
|
data.values.set(atom, value);
|
|
192
192
|
return value;
|
|
193
193
|
} else {
|
|
@@ -1326,9 +1326,9 @@ var isFamilySelector = (state) => isFamilyState(state) && isSelector(state);
|
|
|
1326
1326
|
|
|
1327
1327
|
// src/index.ts
|
|
1328
1328
|
if (globalThis.__valdres__) {
|
|
1329
|
-
throw new Error(`Error! An instance of valdres is already loaded. Loaded: ${globalThis.__valdres__}. Attempted to load: ${"0.2.0-pre.
|
|
1329
|
+
throw new Error(`Error! An instance of valdres is already loaded. Loaded: ${globalThis.__valdres__}. Attempted to load: ${"0.2.0-pre.4"}`);
|
|
1330
1330
|
} else {
|
|
1331
|
-
globalThis.__valdres__ = "0.2.0-pre.
|
|
1331
|
+
globalThis.__valdres__ = "0.2.0-pre.4";
|
|
1332
1332
|
}
|
|
1333
1333
|
export {
|
|
1334
1334
|
store,
|