Skip to content
Snippets Groups Projects
Commit e8940e3e authored by Konrad Mohrfeldt's avatar Konrad Mohrfeldt :koala:
Browse files

chore: fix types

parent 74be028a
No related branches found
No related tags found
No related merge requests found
...@@ -44,7 +44,7 @@ export function useUpdatableState<T>( ...@@ -44,7 +44,7 @@ export function useUpdatableState<T>(
onUpdate: (value: T) => void, onUpdate: (value: T) => void,
clone: (value: T) => T = cloneDeep, clone: (value: T) => T = cloneDeep,
): Ref<T> { ): Ref<T> {
const localRef = ref() const localRef = ref() as Ref<T>
watchEffect(() => { watchEffect(() => {
localRef.value = clone(externalStateRef.value) localRef.value = clone(externalStateRef.value)
}) })
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment