Skip to content

Commit

Permalink
fix: modify comment
Browse files Browse the repository at this point in the history
  • Loading branch information
MoonBall committed Apr 25, 2021
1 parent b566f06 commit c0d73da
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/use-swr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,7 @@ async function mutate<Data = any>(
if (shouldAbort()) return data
}

// clear promise of revalidate whether or not `revalidate({ dedupe: false })`
// be called subsequently.
// clear promise of revalidate after mutating
delete CONCURRENT_PROMISES[key]
delete CONCURRENT_PROMISES_TS[key]

Expand Down

0 comments on commit c0d73da

Please sign in to comment.