Skip to content

keep array reactivity #1286

Closed Answered by posva
nablaFox asked this question in Questions and Help
Discussion options

You must be logged in to vote

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

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by nablaFox
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants