Updating Metadata from useSelector
Unanswered
West African Lion posted this in #help-forum
West African LionOP
My data is been fetched by a third-party redux library - I am not calling any APIs to retrieve data
Any smart ways to update metadata, with the data retrieved from Redux?
It is clear, in order to do
I am looking for ways to propagate, let's say the
Any smart ways to update metadata, with the data retrieved from Redux?
It is clear, in order to do
useSelector(state=> state.posts) I need to be in a "use client" componentI am looking for ways to propagate, let's say the
post.title into the metadata object6 Replies
West African LionOP
anyone has any idea?
@West African Lion My data is been fetched by a third-party redux library - I am not calling any APIs to retrieve data
Any smart ways to update metadata, with the data retrieved from Redux?
It is clear, in order to do `useSelector(state=> state.posts)` I need to be in a `"use client"` component
I am looking for ways to propagate, let's say the `post.title` into the metadata object
we can't use the metadata api on client side. if you want to change the document title on client side, you could try return it in a title tag
<title>{post.title}</title>West African LionOP
@Ray - does this work with the App Router?
West African LionOP
but I also want to generate static server site pages so these pages are generated by SEO as well
@West African Lion but I also want to generate static server site pages so these pages are generated by SEO as well
seo is server side. redux is client side. you cannot use redux to manage seo.