Next.js Discord

Discord Forum

Updating Metadata from useSelector

Unanswered
West African Lion posted this in #help-forum
Open in Discord
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 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

6 Replies

West African LionOP
anyone has any idea?
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.