1. 09 3月, 2021 7 次提交
  2. 08 3月, 2021 9 次提交
  3. 06 3月, 2021 3 次提交
    • J
      v10.0.9-canary.0 · e17398f4
      JJ Kasper 提交于
      e17398f4
    • S
      Dedupe in-flight server data requests (#22781) · 2d207fb1
      Shu Ding 提交于
      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.
      2d207fb1
    • S
      Fix idleTimeout error being thrown in route loader (#22775) · afc8ce4d
      Shu Ding 提交于
      In the current implementation, `idleTimeout` will always be thrown even if it didn't time out and `Promise.race` was resolved. This causes the error `Error: Route did not complete loading` on every route transition and Chrome Devtools will pause code execution if you have "Pause on exceptions" enabled.
      
      This PR adds `resolvePromiseWithTimeout` which does the same thing as `Promise.race` and `idleTimeout`, but it cancels the rejection when it resolves successfully, in which case the error won't be thrown.
      
      Fixes #21543.
      afc8ce4d
  4. 05 3月, 2021 5 次提交
  5. 04 3月, 2021 5 次提交
  6. 03 3月, 2021 10 次提交
  7. 02 3月, 2021 1 次提交