vercel / next.js

The React Framework
https://nextjs.org
MIT License
127.07k stars 27.01k forks source link

metadata doesn't change with <Link /> component in navbar, it does change while navigating from the browser #51749

Closed saver711 closed 1 year ago

saver711 commented 1 year ago

Verify canary release

Provide environment information

"dependencies": {
    "@apollo/client": "^3.8.0-beta.3",
    "@apollo/experimental-nextjs-app-support": "^0.2.1",
    "@types/node": "20.3.1",
    "@types/react": "18.2.13",
    "@types/react-dom": "18.2.6",
    "autoprefixer": "10.4.14",
    "eslint": "8.43.0",
    "eslint-config-next": "13.4.6",
    "graphql": "^16.6.0",
    "next": "^13.4.7",
    "next-auth": "^4.22.1",
    "postcss": "8.4.24",
    "react": "18.2.0",
    "react-dom": "18.2.0",
    "tailwindcss": "3.3.2",
    "typescript": "5.1.3"
  },
  "devDependencies": {
    "@tailwindcss/aspect-ratio": "^0.4.2",
    "tailwindcss-rtl": "^0.9.0"
  }

Which area(s) of Next.js are affected? (leave empty if unsure)

No response

Link to the code that reproduces this issue or a replay of the bug

https://github.com/saver711/nextjs13-starpi

To Reproduce

yarn yarn dev

Describe the Bug

While navigating from the navbar with links, meta data doesn't change

Expected Behavior

to change ~

Which browser are you using? (if relevant)

No response

How are you deploying your application? (if relevant)

No response

KingBael09 commented 1 year ago

In my case the problem seem to be that navigation with link (after a fresh reload) changes the metadata once but after that metadata doesn't seem to get updated on any route change.

edit: I have enabled serverActions and typedRoutes experimental features

NextJS ver. 13.4.7

Related to #49409

ikraamdaanis commented 1 year ago

I am having the same issue. Hopefully it gets fixed soon!

shuding commented 1 year ago

This should be caused by serverActions: true, duplicate of #49409. Closing this one for now.

github-actions[bot] commented 1 year ago

This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.