useNuxt2Meta values didn't update if values are computed
Open
Nobody has claimed this yet.
pending triage
- Dominant language
- TypeScript
- Stars
- 285
- Forks
- 33
- Avg merge
- 22h 38m
- Merged PRs (30d)
- 3
Description
Environment
- Operating System:
Windows_NT - Node Version:
v14.19.1 - Nuxt Version:
2.16.0-27616340.013f051b - Package Manager:
yarn@1.22.18 - Builder:
webpack - User Config:
srcDir,alias,server,bridge,head,css,styleResources,plugins,buildModules,gtm,modules,postcss,tailwindcss,typescript,sentry,buefy,image,axios,proxy,render,i18n,router,build,serverHandlers,devServerHandlers - Runtime Modules:
@nuxt/image@0.6.2,@nuxtjs/sentry@5.1.7,nuxt-buefy@0.3.31,@nuxtjs/axios@5.12.5,@nuxtjs/proxy@2.1.0,cookie-universal-nuxt@2.2.1,@nuxtjs/i18n@7.2.3,nuxt-sweetalert2@1.0.0 - Build Modules:
(),@pinia/nuxt@0.3.1,@nuxtjs/eslint-module@3.1.0,@nuxtjs/style-resources@1.2.1,@nuxtjs/gtm@2.4.0,@nuxtjs/tailwindcss@4.2.1,@nuxtjs/dotenv@1.4.1,@nuxt/bridge@3.0.0-27657000.c87fdbe
Reproduction
https://codesandbox.io/s/dreamy-maxwell-ir8qu1?file=/pages/index.vue
Describe the bug
Meta object values are not updating if object values (title, link, meta etc.) are computed.
Additional context
I cannot see browser title on codesandbox. Therefore i downloaded reproduction into my computer and i tested in locally.
Logs
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the linked CodeSandbox reproduction, especially pages/index.vue, and run it locally as described in the report. Trace how computed title, link, and meta values are passed to useNuxt2Meta. Done means those computed metadata values update in the browser when their dependencies change.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend, web-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100