1. 22 Jul, 2025 2 commits
  2. 18 Jul, 2025 1 commit
  3. 17 Jul, 2025 2 commits
    • Zack Tanner's avatar
      fix: pages router metadata bugs with React 19 (#81733) · 8f64c82c
      Zack Tanner authored
      When we updated `experimental.strictNextHead` to be true in #65418, we
      did not update all spots that would default to true in the case where
      the value was omitted entirely.
      
      This led to the default value not being correctly applied in pages
      router, which resulted in duplicate metadata w/ React 19.
      
      Since we made the flag the default, we can also probably clean up this
      flag all together, but that can be done separately.
      
      Fixes #81655
      Fixes #81689
      8f64c82c
    • Jiachi Liu's avatar
      529f14c3
  4. 15 Jul, 2025 2 commits
  5. 14 Jul, 2025 19 commits
  6. 13 Jul, 2025 2 commits
  7. 12 Jul, 2025 4 commits
    • nextjs-bot's avatar
      v15.4.0-canary.128 · 9c980c01
      nextjs-bot authored
      9c980c01
    • Rob Pruzan's avatar
      0c9355d3
    • Zack Tanner's avatar
      add flag to opt into smooth scroll detection & add warning (#81563) · 0cf373a5
      Zack Tanner authored
      **What:**
      `layout-router` currently forces style recalculation on every navigation by manipulating the `scroll-behavior` CSS property on the `<html>` element. This would impact most navigations, even though most don't use smooth scrolling
      
      **Why:**
      To prevent smooth scrolling during router navigation (which can feel janky), Next.js temporarily resets `scroll-behavior` to `auto`, then restores the original value (#40642). While this solves the UX issue, it causes performance overhead for the vast majority of users who don't have smooth scrolling configured.
      
      **How:**
      This PR introduces an optimization that checks for a `data-scroll-behavior="smooth"` attribute before manipulating styles. Only users who explicitly opt into smooth scrolling will experience the style recalculation.
      
      - The existing behavior is preserved by default
      - Opt-in to the new behavior by setting `experimental.optimizeRouterScrolling: true` in Next.js config
      - When smooth-scroll is detected on the document, a development warning is logged to notify that the default behavior will be changing in an upcoming major.
      0cf373a5
    • Zack Tanner's avatar
      rename `handleSmoothScroll` util (#81546) · 9a6f1bd4
      Zack Tanner authored
      This function has a confusing name because it doesn't do any sort of smooth scroll handling or behavior, it just resets smooth scroll handling on the document before performing a router transition.  This attempts to rename the function to be more accurate to what it's doing.
      9a6f1bd4
  8. 11 Jul, 2025 8 commits