We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When document path contains the same document ID multiple times useDocument is returning error. Example:
users/2MrkMdgKuhJvgsT8GxoS38qDrWST/blocks/2MrkMdgKuhJvgsT8GxoS38qDrWST
is reduced to users/blocks by that line
users/blocks
swr-firestore/src/hooks/use-swr-document.ts
Line 98 in b5f9a09
and that results in the following error:
[fuego-swr-keys-from-collection-path] error: Passed a path that was not a collection to useCollection: users//blocks
The text was updated successfully, but these errors were encountered:
Interesting catch! Open to a PR if you could propose a solution.
Just curious, does it make sense for documents to have the same ID like that? I figure they should always be unique.
Sorry, something went wrong.
I guess they need to be unique withing single collection but sub-collection is just another collection.
No branches or pull requests
When document path contains the same document ID multiple times useDocument is returning error.
Example:
is reduced to
users/blocks
by that lineswr-firestore/src/hooks/use-swr-document.ts
Line 98 in b5f9a09
and that results in the following error:
The text was updated successfully, but these errors were encountered: