@solid-primitives/memo
Advanced tools
Comparing version 1.1.4 to 1.1.5
@@ -46,3 +46,3 @@ import { createSignal, createComputed, on, createMemo, getOwner, untrack, runWithOwner } from 'solid-js'; | ||
{ | ||
return () => options?.value; | ||
return () => options.value; | ||
} | ||
@@ -49,0 +49,0 @@ } |
{ | ||
"name": "@solid-primitives/memo", | ||
"version": "1.1.4", | ||
"version": "1.1.5", | ||
"description": "Collection of custom memo primitives. They extend Solid's createMemo functionality while keeping the usage similar.", | ||
@@ -87,8 +87,8 @@ "author": "Damian Tarnawski @thetarnav <gthetarnav@gmail.com>", | ||
"dependencies": { | ||
"@solid-primitives/scheduled": "^1.2.1", | ||
"@solid-primitives/utils": "^5.0.0" | ||
"@solid-primitives/scheduled": "^1.3.1", | ||
"@solid-primitives/utils": "^5.2.1" | ||
}, | ||
"devDependencies": { | ||
"@solid-primitives/mouse": "^2.0.6", | ||
"solid-app-router": "^0.3.3" | ||
"@solid-primitives/mouse": "^2.0.7", | ||
"solid-app-router": "^0.4.2" | ||
}, | ||
@@ -95,0 +95,0 @@ "peerDependencies": { |
@@ -150,3 +150,3 @@ <p> | ||
}, | ||
{ value: "initial value" } | ||
{ value: "initial value" }, | ||
); | ||
@@ -321,7 +321,7 @@ // initial value can be set to prevent returned signal from being undefined | ||
calc: CacheCalculation<Key, Value>, | ||
options?: CacheOptions<Value> | ||
options?: CacheOptions<Value>, | ||
): Accessor<Value>; | ||
function createMemoCache<Key, Value>( | ||
calc: CacheCalculation<Key, Value>, | ||
options?: CacheOptions<Value> | ||
options?: CacheOptions<Value>, | ||
): CacheKeyAccessor<Key, Value>; | ||
@@ -352,3 +352,3 @@ | ||
initialValue: T, | ||
options?: SignalOptions<T> | ||
options?: SignalOptions<T>, | ||
): [accessor: Accessor<T>, dispatch: (...args: ActionData) => void]; | ||
@@ -355,0 +355,0 @@ ``` |
Sorry, the diff of this file is not supported yet
45303