Getter with params not reactive? #536
Answered
by
posva
3zzy
asked this question in
Help and Questions
-
I have this getter:
which when used in a component like so:
... stays However, if I do the following in console:
returns the correct data. What am I doing wrong here? Thanks! |
Beta Was this translation helpful? Give feedback.
Answered by
posva
Jun 15, 2021
Replies: 1 comment 3 replies
-
You need a computed where you call the function: const data = computed(() => DataStore.getDataById({ dataType: 'dynamic', dataId: props.dataId })) |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
3zzy
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You need a computed where you call the function: