Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
1 task done
saver711 opened this issue Jun 24, 2023 · 4 comments
Labels
bug Issue was opened via the bug report template. locked

Comments

@saver711
Copy link

Verify canary release

  • I verified that the issue exists in the latest Next.js 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

@saver711 saver711 added the bug Issue was opened via the bug report template. label Jun 24, 2023
@KingBael09
Copy link

KingBael09 commented Jun 24, 2023

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
Copy link

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

@shuding
Copy link
Member

shuding commented Jun 26, 2023

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

@shuding shuding closed this as completed Jun 26, 2023
@github-actions
Copy link
Contributor

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 26, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue was opened via the bug report template. locked
Projects
None yet
Development

No branches or pull requests

4 participants