We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9fe40e7 commit 366990eCopy full SHA for 366990e
src/lib/state/persistance/usePersistSignals.tsx
@@ -50,12 +50,12 @@ const persistValue = ({
50
)
51
}
52
53
-function hydrateValueToSignal<Value>({
+function hydrateValueToSignal({
54
adapter,
55
config
56
}: {
57
adapter: Adapter
58
- config: SignalPersistenceConfig<Value>
+ config: SignalPersistenceConfig<any>
59
}) {
60
const { hydrate = ({ value }) => value, signal, version } = config
61
@@ -73,7 +73,7 @@ function hydrateValueToSignal<Value>({
73
return of(value)
74
75
76
- const correctVersionValue = normalizedValue.value as Value
+ const correctVersionValue = normalizedValue.value
77
78
signal.setValue(hydrate({ value: correctVersionValue, version }))
79
0 commit comments