Skip to content

Commit

Permalink
fix: make default cache reactive
Browse files Browse the repository at this point in the history
  • Loading branch information
edumudu committed Jul 16, 2022
1 parent 620c089 commit 7e7acde
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/config/swr-config.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import { reactive } from 'vue';

import { SWRConfig } from '@/types';
import { MapAdapter } from '@/cache';

export const defaultConfig: Required<SWRConfig> = {
cacheProvider: new MapAdapter(),
cacheProvider: reactive(new MapAdapter()),
revalidateOnFocus: true,
revalidateOnReconnect: true,
revalidateIfStale: true,
Expand Down

0 comments on commit 7e7acde

Please sign in to comment.