Deep reactivity in nested components and a reactive getter function #10223
Unanswered
fabianwohlfart
asked this question in
Help/Questions
Replies: 1 comment
-
const headline = getProp(props, 'block.content.headline') |
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
Hello,
Example: https://stackblitz.com/edit/vitejs-vite-zfprcp?file=src%2FApp.vue
Let's say we have a page object with nested data.
We pass this data down to multiple components and components in components.
How would I ideally keep the reactivity, with toRefs or everything with computed.
And then how would I make an easy to use getter function to access different level of this nested data.
Something like lodash.get function, but keeping the reactivity, is it ok to combine lodash.get with computed?
In general I have the feeling that there must be something more smart than overusing computed?
Beta Was this translation helpful? Give feedback.
All reactions