@solidjs/signals 0.10.4 → 0.10.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/dev.js +1 -1
- package/dist/node.cjs +1 -1
- package/dist/prod.js +1 -1
- package/dist/types/store/store.d.ts +4 -4
- package/package.json +1 -1
package/dist/dev.js
CHANGED
|
@@ -729,7 +729,7 @@ function unlinkSubs(link) {
|
|
|
729
729
|
dep._subs = nextSub;
|
|
730
730
|
if (nextSub === null) {
|
|
731
731
|
dep._unobserved?.();
|
|
732
|
-
dep._fn && !dep._preventAutoDisposal && unobserved(dep);
|
|
732
|
+
dep._fn && !dep._preventAutoDisposal && !(dep._flags & REACTIVE_ZOMBIE) && unobserved(dep);
|
|
733
733
|
}
|
|
734
734
|
}
|
|
735
735
|
return nextDep;
|
package/dist/node.cjs
CHANGED
package/dist/prod.js
CHANGED
|
@@ -2,17 +2,17 @@ import { $REFRESH, type Computed, type Signal } from "../core/index.js";
|
|
|
2
2
|
export type Store<T> = Readonly<T>;
|
|
3
3
|
export type StoreSetter<T> = (fn: (state: T) => T | void) => void;
|
|
4
4
|
/** Base options for store primitives. */
|
|
5
|
-
export
|
|
5
|
+
export interface StoreOptions {
|
|
6
6
|
/** Debug name (dev mode only) */
|
|
7
7
|
name?: string;
|
|
8
|
-
}
|
|
8
|
+
}
|
|
9
9
|
/** Options for derived/projected stores created with `createStore(fn)`, `createProjection`, or `createOptimisticStore(fn)`. */
|
|
10
|
-
export
|
|
10
|
+
export interface ProjectionOptions extends StoreOptions {
|
|
11
11
|
/** Key property name or function for reconciliation identity */
|
|
12
12
|
key?: string | ((item: NonNullable<any>) => any);
|
|
13
13
|
/** When true, reconciles all properties (not just tracked ones) */
|
|
14
14
|
all?: boolean;
|
|
15
|
-
}
|
|
15
|
+
}
|
|
16
16
|
export type NoFn<T> = T extends Function ? never : T;
|
|
17
17
|
type DataNode = Signal<any>;
|
|
18
18
|
type DataNodes = Record<PropertyKey, DataNode>;
|