-
Notifications
You must be signed in to change notification settings - Fork 54
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
How to seo, useSEometa in data useHttp #19
Comments
Or you can use the reactive method |
i did it this way and ok, the problem i think is in useHttp, because if i use Fetch it works (in production environment after deployment) Success: useSeoMeta({ Error: ` const { data, refresh } = await useHttp("load-data-home-page"); useSeoMeta({ |
Ok, I'll check it out this week. For now, you can use |
I couldn't reproduce the error. |
`
const { data, status, error, refresh, clear } = await useHttp('/load-data')
watch(data, (newData) => {
console.log('newData', newData)
if (newData) {
useSeoMeta({
title: newData.data.meta?.title || 'Makeup & More',
ogTitle: newData.data.meta?.title || 'Makeup & More',
description: newData.data.meta?.desc || '',
ogDescription: newData.data.meta?.desc || '',
ogImage: newData.data.meta?.image
? useNuxtApp().$storage(newData.data.meta.image)
: '',
twitterCard: 'summary_large_image',
});
}
}, { immediate: true });
`
Please help me with the problem of useSomemeta dymanic when getting data
The text was updated successfully, but these errors were encountered: