1. 08 Mar, 2021 10 commits
  2. 07 Mar, 2021 1 commit
  3. 05 Mar, 2021 4 commits
    • JJ Kasper's avatar
      v10.0.9-canary.0 · e17398f4
      JJ Kasper authored
      e17398f4
    • Shu Ding's avatar
      Dedupe in-flight server data requests (#22781) · 2d207fb1
      Shu Ding authored
      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
    • Shu Ding's avatar
      Fix idleTimeout error being thrown in route loader (#22775) · afc8ce4d
      Shu Ding authored
      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
    • Joe Haddad's avatar
      v10.0.8 · 33255b7f
      Joe Haddad authored
      33255b7f
  4. 04 Mar, 2021 5 commits
  5. 03 Mar, 2021 8 commits
  6. 02 Mar, 2021 9 commits
  7. 01 Mar, 2021 3 commits
    • Joe Haddad's avatar
      v10.0.8-canary.11 · 72ce0173
      Joe Haddad authored
      72ce0173
    • dominicfraser's avatar
      Update authentication.md SSR example (#22641) · 86ce29b3
      dominicfraser authored
      There are two examples, one (a) for "Authenticating Statically Generated Pages" and one (b) for "Authenticating Server-Rendered Pages".
      
      (a) uses a sudo `useUser` hook to fetch the user client-side.
      
      It looks like the example for (b) was copied and pasted then edited from (a), but in (b) this `useUser` hook is not used (instead using `req.session.get('user')`).
      
      This PR simply removes the unused import in the (b) example.
      86ce29b3
    • Lee Robinson's avatar
      Add note about other redirects to `next.config.js` docs. (#22640) · eb79218b
      Lee Robinson authored
      In case a user lands on this page via search or from Google, we should mention the other ways you can redirect with Next.js.
      eb79218b