Skip to content

Commit

Permalink
fix(useSWR): fix generic types
Browse files Browse the repository at this point in the history
  • Loading branch information
edumudu committed Aug 31, 2022
1 parent ee1d9b4 commit cdb88dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/composables/swr/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ type UseCachedRefOptions = {
const useCachedRef = <T>(initialValue: T, { cache, stateKey, key }: UseCachedRefOptions) => {
const cacheStete = computed(() => cache.get(unref(key)));

return customRef((track, trigger) => {
return customRef<T>((track, trigger) => {
return {
get() {
track();
Expand Down

0 comments on commit cdb88dc

Please sign in to comment.