keep array reactivity #1286
keep array reactivity
#1286
-
I have a firestore database structured as follows:
how can i make currentRoom:
responsive to changes in the members array? |
Beta Was this translation helpful? Give feedback.
Answered by
posva
Jan 25, 2023
Replies: 1 comment
-
with a computed, like in vue: const currentRome = useDocument(computed(() => doc(collection(db, 'room's), roomId.value)))
const currentRome = useDocument(computed(() => doc(collection(db, 'room's), route.params.roomId))) It needs to be a reactive value though, like a ref or a route param |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
nablaFox
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
with a computed, like in vue:
It needs to be a reactive value though, like a ref or a route param