rsnext/test/integration/getserversideprops
Shu Ding 2d207fb11d
Dedupe in-flight server data requests (#22781)
This PR adds request deduplication for `_getServerData`. If a request with the same URL is already in-flight, we don't send another new request. When a request succeeds or fails, we delete the cache.

A potential improvement this brings is, when `getServerSideProps` of a new route is slow to load, the user might keep clicking on the link which causes new requests, and the route will never update because results of old requests were ditched. Also adds a test case for this scenario.

Closes #19238.
2021-03-05 17:16:02 +00:00
..
pages Dedupe in-flight server data requests (#22781) 2021-03-05 17:16:02 +00:00
test Dedupe in-flight server data requests (#22781) 2021-03-05 17:16:02 +00:00
next.config.js Provide resolvedUrl to getServerSideProps (#17082) 2020-09-14 21:01:04 +00:00
world.txt Rename getServerProps to getServerSideProps (#10722) 2020-02-27 11:04:30 -06:00