rsnext/test/e2e/app-dir/app-fetch-deduping
Zack Tanner f8a4e0f3c3
fix: fetch deduping in dev (#53549)
This attempts to fix an issue where fetch requests were not being
deduped on the first request to the page (but subsequent requests were
properly deduped).

This seems to be caused by the async context from
`staticGenerationStore` being lost by the time the patched fetch is
called, and so it was falling back to a regular fetch and skipping the
cache. This attempts to fix that by falling back to
`fetch.__nextGetStaticStore()`.

[slack
x-ref](https://vercel.slack.com/archives/C03KAR5DCKC/p1691007445597619)
2023-08-03 15:10:55 -07:00
..
app fix: fetch deduping in dev (#53549) 2023-08-03 15:10:55 -07:00
app-fetch-deduping.test.ts fix: fetch deduping in dev (#53549) 2023-08-03 15:10:55 -07:00