1. 07 1月, 2021 1 次提交
    • D
      Only prefetch Link if router is in context (#19857) · 55afe80c
      Damien Varron 提交于
      Fixes #16864 
      
      The `router` can be missing in a test environment when trying to render a `Link` component. This PR bails out of `router.prefetch()` when `router` is missing.
      
      The alternative is for users to mock `next/link` or to mock the `router` and wrap their test components.
      
      Please let me know any feedback.
      55afe80c
  2. 06 1月, 2021 14 次提交
  3. 05 1月, 2021 15 次提交
  4. 04 1月, 2021 10 次提交