Skip to content

Commit

Permalink
fix: add injected caches in the WeakMap
Browse files Browse the repository at this point in the history
  • Loading branch information
koba04 committed Aug 29, 2021
1 parent c4f2980 commit a5e770a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/swr-devtools/src/SWRDevTools.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ const swrdevtools: Middleware = (useSWRNext) => (key, fn, config) => {
const { cache } = config;
if (!injected.has(cache)) {
inject(cache);
injected.add(cache);
}
return useSWRNext(key, fn, config);
};
Expand Down

0 comments on commit a5e770a

Please sign in to comment.