Dynamic binding useDocument #1251
Replies: 1 comment
-
an empty string cannot be used as the id of a document, it has to contain something. If you want to create a new document, you can use Also, note that documents bound with VueFire have their |
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Reproduction
Was attempting to create form to edit Todos - tried pulling todo item into useDocument dynamically
Steps to reproduce the behavior
try above code
Expected behavior
Expected updTodo to get updated & to be ale to update todo elements after entering document id in docId
Actual behavior
Uncaught (in promise) FirebaseError: Invalid document reference. Document references must have an even number of segments, but todos has 1.
Perhaps I do not understand how this element is to be used?
Beta Was this translation helpful? Give feedback.
All reactions