-
-
Notifications
You must be signed in to change notification settings - Fork 29
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
defineOgImageComponent with dynamic values not working #190
Comments
Hey, thanks for the issue.
OG Image data needs to be defined within the Server Side response, if your data is only available onMounted then it will always be empty as this is only called on the client side. You'll need to fetch the data top-level to fix this, if you still have issues please make a reproduction. |
…y `devalue` due to passing refs as props of `defineOgImageComponent()`: nuxt-modules/og-image#190 in `usePostsSEO()` @ index.ts * replace references to type `UserProvision` with new type `PartialUserProvision` to remove unused function `renderUsername()` in `useSchemaOrg()` @ schemaOrg.ts @ post/seo * remove unnecessary `Number.toString()` in `toUserRoute()` @ user.ts @ utils @ fe
…t/nuxt#28446 * fix class `ms-1` only occurs on not-2th username @ `<PostBadgeThreadAuthorAndLatestReplier>` - prop `expandRowByClick` of `<ATable>` @ <PostRendererTable>` * widden the type of param `name` of `routeNameWithCursor()` and guard it against `assertRouteNameIsStr()` to be like `routeNameWithoutCursor()` * only return the modified route name and param `cursor` without any parts like `query` or other params from param `route` @ `getNextCursorRoute()` @ router.ts * fix regression of 0917db2 as `defineOgImageComponent()` now seem being able to `unref()` internally: nuxt-modules/og-image#190 @ post/seo/index.ts @ utils @ fe
Hi! trying to make defineOgImageComponent work with dynamic data that I get from CMS api in OnMonted for Nuxt3.
useSeoMeta({ description: () => descriptionMeta.value, })
the
() => prop
for useSeoMeta is working great for me but unfortunately defineOgImageComponent does not work like that and creates an image with emty or default values even if i give it ref or computed properties.Do you know any way to make it work?
The text was updated successfully, but these errors were encountered: