valdres 0.2.0-pre.3 → 0.2.0-pre.5
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 +4 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -503,6 +503,8 @@ var findAllDependents = (selector, data, depsRes = new Set, subsRes = new Set) =
|
|
|
503
503
|
addSetToSet(subscriptions, subsRes);
|
|
504
504
|
if (dependents && dependents.size > 0) {
|
|
505
505
|
for (const dependent of dependents) {
|
|
506
|
+
if (depsRes.has(dependent))
|
|
507
|
+
continue;
|
|
506
508
|
findAllDependents(dependent, data, depsRes, subsRes);
|
|
507
509
|
}
|
|
508
510
|
}
|
|
@@ -1326,9 +1328,9 @@ var isFamilySelector = (state) => isFamilyState(state) && isSelector(state);
|
|
|
1326
1328
|
|
|
1327
1329
|
// src/index.ts
|
|
1328
1330
|
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.
|
|
1331
|
+
throw new Error(`Error! An instance of valdres is already loaded. Loaded: ${globalThis.__valdres__}. Attempted to load: ${"0.2.0-pre.5"}`);
|
|
1330
1332
|
} else {
|
|
1331
|
-
globalThis.__valdres__ = "0.2.0-pre.
|
|
1333
|
+
globalThis.__valdres__ = "0.2.0-pre.5";
|
|
1332
1334
|
}
|
|
1333
1335
|
export {
|
|
1334
1336
|
store,
|