Questions about using @next useDocument useCollection #1244
-
First of all, thanks for taking the time to update the project in @next. I'm trying to implement the
I'm getting to following error right now when applying
Thanks again! 👍🏻 ps I'm using the latest source, not latest release |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
Thanks for the feedback!
const currentDocSource = computed(() => doc(db, route.params.id))
const currentDoc = useDocument(currentDocSource) This makes me think I should support passing |
Beta Was this translation helpful? Give feedback.
-
Can I have a followup question on this one?
The So I am wondering if this is correctly implemented for collection, and if so, what can I do to get my |
Beta Was this translation helpful? Give feedback.
Thanks for the feedback!
unbind()
(const { data, unbind } = useDocument()
) which is probably going to be renamed tostop()
or something elseuseDocument()
(same with collection):This makes me think I should support passing
null | undefined
to allow declarative unbinding: whencurrentDocSource.value
isundefined
ornull
, it will just unbind without binding a new doc