Skip to content

Commit

Permalink
chore: remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
posva committed Aug 25, 2022
1 parent dbd8f61 commit 996ee86
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/data-fetching/dataCache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,18 +90,6 @@ export function updateDataCacheEntry<T>(
entry.data.value = data
}

function refsFromObject<T>(data: T): ToRefs<T> {
const result = {} as ToRefs<T>
for (const key in data) {
// @ts-expect-error: the key is good
result[key] =
// to type check this line
ref(data[key])
}

return result
}

// local scope

export let scope: EffectScope | undefined
Expand Down

0 comments on commit 996ee86

Please sign in to comment.