Skip to content

Commit

Permalink
Fix logic screw-up in createPatchedFetcher
Browse files Browse the repository at this point in the history
  • Loading branch information
unstubbable committed Jul 9, 2024
1 parent 6dfc3c2 commit 0a4f81c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/next/src/server/lib/patch-fetch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -660,7 +660,7 @@ function createPatchedFetcher(
cachedFetchData = requestStore.fastRefreshFetchCache.get(cacheKey)
}

if (!cachedFetchData) {
if (isCacheableRevalidate && !cachedFetchData) {
handleUnlock =
await staticGenerationStore.incrementalCache.lock(cacheKey)

Expand Down

0 comments on commit 0a4f81c

Please sign in to comment.