fetch content according to a emitted payload #1621
Unanswered
RebelliousSmile
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi !
I'm really excited about new features of nuxt content. Maybe i try too hard tricks for my level still 😄
so...
i'm trying to write a component that will fetch data into md content and give them to template. On parent component, a select emits a event, with the name of the file as payload. i send it as a prop to the child component (right under here), and watch the prop to detect a change. all seems to work well until rendering. ContentDoc doesn't update its content object. I thought that the ContentDoc (or ContentRenderer) would change if one of its prop changes.
How can i achieve to dynamically fetch content in relation with a select value ?
Thank you,
Beta Was this translation helpful? Give feedback.
All reactions