Skip to content

Commit

Permalink
fix: size cache key for v0
Browse files Browse the repository at this point in the history
  • Loading branch information
koba04 committed Aug 14, 2021
1 parent b0340bb commit b3f2eae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/swr-devtools/src/swr-cache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export const injectSWRCache = (
export const isMetaCache = (key: string) => {
return (
// ctx and len are keys used in use-swr-infinite
/^(?:validating|err|context|len)@/.test(key) ||
/^(?:validating|err|context|size)@/.test(key) ||
// v1 (beta)
/^\$(?:req|err|ctx|len)\$/.test(key)
);
Expand Down

0 comments on commit b3f2eae

Please sign in to comment.