1. 21 8月, 2020 9 次提交
  2. 20 8月, 2020 11 次提交
  3. 19 8月, 2020 11 次提交
    • J
      Normalize request URL/asPath for fallback SSG pages (#16352) · 67482914
      JJ Kasper 提交于
      This interpolates the dynamic values and rebuilds the request URL for fallback SSG pages since the proxy uses the output path for non-prerendered pages on Vercel which can cause inconsistent request URL/`asPath` values for SSG pages. This also adds tests to ensure the `asPath` is correctly updated
      
      Fixes: https://github.com/vercel/next.js/issues/16269
      67482914
    • T
      v9.5.3-canary.12 · 1388aa41
      Tim Neutkens 提交于
      1388aa41
    • J
      Make `loadPage` track success of script loading (#16334) · 0a72d14d
      Joe Haddad 提交于
      Prior to this PR, `loadPage` would call `loadScript` which would then report if the script failed to load.
      
      This was problematic because `loadScript` notified a failure to load via `pageRegisterEvents`, which would not set the `pageCache` value for future requests.
      This means a one-off promise rejection would happen, [in lieu of being] typically consumed within the client-side router, causing a server-side reload.
      
      However, when `loadPage` was used independently (i.e. to preload pages), this promise rejection would be ignored as a preload failure.
      When the real routing request comes in, the `loadPage` function skips its attempt to load the `<script>` because it was already in the DOM, and the router would stop functioning.
      
      ---
      
      To fix this behavior, I've removed erroneous emits on `pageRegisterEvents` to only happen during the page registration lifecycle (its intended use).
      
      The new behavior is that `loadScript` returns a `Promise` that `loadPage` can track, and if any of the page(s) scripts fail to load, we mark the entire page as errored in `pageCache`. This ensures future requests to `loadPage` will always immediately reject with a `PAGE_LOAD_ERROR`, which causes the server-side redirect at the appropriate point.
      
      ---
      
      Fixes #16333
      0a72d14d
    • J
      v9.5.3-canary.11 · 8ef253fd
      Joe Haddad 提交于
      8ef253fd
    • J
      Fix IE11 CSS Compatibility (#16336) · 97460433
      Joe Haddad 提交于
      97460433
    • T
      v9.5.3-canary.10 · 25fa1653
      Tim Neutkens 提交于
      25fa1653
    • A
      Add at attribute to image preload link (#16328) · 7198cbe0
      Alex Castle 提交于
      Fixes a small error in the image preload post-processor. Adds a needed 'as' attribute to the link.
      7198cbe0
    • J
      v9.5.3-canary.9 · fe61948d
      Joe Haddad 提交于
      fe61948d
    • J
      Add `<link>` attributes in proper order (#16319) · ec07bf12
      Joe Haddad 提交于
      1. `as` should be set before `rel` in case of `preload` or `prefetch`
      2. `href` should be after `onload` and `onerror`
      ec07bf12
    • J
      Force browser to recompute layout on page nav (#16318) · 5f975500
      Joe Haddad 提交于
      This fixes an edge case where every dozen or so transitions you'll see a flash depending on what's happening on the main thread at the time.
      
      I'm not sure it's possible to test for this case, so we'll just have to do more field testing with this.
      5f975500
    • J
      Replace broken `prop-types-exact` package (#15953) · ff33e07a
      Joe Haddad 提交于
      This PR replaces `prop-types-exact` (only used in this location) with manual property checking.
      
      Right now, malformed properties sent to `<Link>` are silently handled and only emit a warning in the console.
      This leads to confusing/unexpected errors because we try to read a value that is undefined.
      
      To fix this, we'll now throw a proper error when `<Link>` is misused. **This still isn't optimal, however, because we don't have a component stack trace we can give the user**.
      We're not going to be able to give the user actionable instructions until React 16.14 at a minimum.
      
      ---
      
      Fixes #13951
      Fixes #16107
      Closes #13962
      ff33e07a
  4. 18 8月, 2020 9 次提交