Share Dynamic Data between RSC and `generateMetadata` method
Answered
Spectacled bear posted this in #help-forum
Spectacled bearOP
Hey! I've been looking the docs and gh issues/discussions for some more info about how to share data between a Page (RSC) and generateMetadata.. I've seen there's an open github discussion about this with some people also commenting and asking about it.. Is it that we can share data or variables between the two without cache instruments? (Let's assume you're dealing with a case where both metadata and RSC data shouldn't be cached)
(see related: https://github.com/vercel/next.js/discussions/50080)
Thanks!
(see related: https://github.com/vercel/next.js/discussions/50080)
Thanks!
Answered by B33fb0n3
you can read through the specific comments from the persons, that have already commented. To answer your questions with links to the answers:
Is it that we can share data or variables between the two without cache instruments?https://github.com/vercel/next.js/discussions/50080#discussioncomment-6083286
5 Replies
@Spectacled bear Hey! I've been looking the docs and gh issues/discussions for some more info about how to share data between a Page (RSC) and generateMetadata.. I've seen there's an open github discussion about this with some people also commenting and asking about it.. Is it that we can share data or variables between the two without cache instruments? (Let's assume you're dealing with a case where both metadata and RSC data shouldn't be cached)
(see related: https://github.com/vercel/next.js/discussions/50080)
Thanks!
you can read through the specific comments from the persons, that have already commented. To answer your questions with links to the answers:
Is it that we can share data or variables between the two without cache instruments?https://github.com/vercel/next.js/discussions/50080#discussioncomment-6083286
Answer
@B33fb0n3 you can read through the specific comments from the persons, that have already commented. To answer your questions with links to the answers:
> Is it that we can share data or variables between the two without cache instruments?
https://github.com/vercel/next.js/discussions/50080#discussioncomment-6083286
Spectacled bearOP
Hey thanks for pointing that out. I've seen this already, its been a year since this comment and its still an open discussion, so I wondered if there were any updates on that regard.
@Spectacled bear Hey thanks for pointing that out. I've seen this already, its been a year since this comment and its still an open discussion, so I wondered if there were any updates on that regard.
hm understand. Looks like the last comment is from Jun 27 2024
Spectacled bearOP
I guess that's a no, then I'll subscribe to the discussion for now. Ty