Skip to content

Commit

Permalink
Merge branch 'main' into fix-2128
Browse files Browse the repository at this point in the history
  • Loading branch information
huozhi committed Oct 4, 2022
2 parents a2457aa + d32607f commit 91b7611
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 3 additions & 1 deletion _internal/utils/mutate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,9 @@ export async function internalMutate<Data>(
if (isFunction(_key)) {
const keyFilter = _key
const matchedKeys: Key[] = []
for (const key of cache.keys()) {
const it = cache.keys()
for (let keyIt = it.next(); !keyIt.done; keyIt = it.next()) {
const key = keyIt.value
if (
// Skip the special useSWRInfinite keys.
!key.startsWith('$inf$') &&
Expand Down
1 change: 0 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
"noUnusedLocals": true,
"noUnusedParameters": true,
"strictBindCallApply": true,
"downlevelIteration": true,
"outDir": "./dist",
"rootDir": "./",
"strict": true,
Expand Down

0 comments on commit 91b7611

Please sign in to comment.