We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
useSchemaOrg()
I'm wondering what the usage is for the useSchemaOrg because I can't seem to get a reactive change to occur.
useSchemaOrg
A typical example of usage I have provided is the following:
import type { Ref } from 'vue' import type { Product } from '@/types' export const useProductJSONLD = (product: Ref<Product | undefined>) => { useSchemaOrg([ defineProduct({ name: computed(() => product.value?.title || ''), description: computed(() => product.value?.description || ''), sku: computed(() => product.value?.id || ''), }) ]) }
However, the output seems to take from the default that looks to be provided in the head section of the nuxt.config.ts file:
Would it help if the input was made to be a MaybeComputedRef type ... ? I would be happy to PR for this.
MaybeComputedRef
Caveat - I'm using the Nuxt 3 module.
The text was updated successfully, but these errors were encountered:
Hey @michealroberts
Thanks for the issue. Not too sure what's going on here for the reactivity not to work.
With the release of @vueuse/head I'll be able to improve the reactivity quite a bit, so will look into this in the next week or so
Sorry, something went wrong.
With the v2 release, all reactivity issues should be resolved.
Let me know if you have any issues with it
No branches or pull requests
I'm wondering what the usage is for the
useSchemaOrg
because I can't seem to get a reactive change to occur.A typical example of usage I have provided is the following:
However, the output seems to take from the default that looks to be provided in the head section of the nuxt.config.ts file:
Would it help if the input was made to be a
MaybeComputedRef
type ... ? I would be happy to PR for this.Caveat - I'm using the Nuxt 3 module.
The text was updated successfully, but these errors were encountered: