Skip to content
New issue

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

Using ignoreFirestoreDocumentSnapshotField Has No Effect #96

Open
andrewmunsell opened this issue Mar 7, 2021 · 0 comments
Open

Using ignoreFirestoreDocumentSnapshotField Has No Effect #96

andrewmunsell opened this issue Mar 7, 2021 · 0 comments

Comments

@andrewmunsell
Copy link

I'm currently attempting to get the snapshot for a collection query and document, but the ignoreFirestoreDocumentSnapshotField parameter seems to have no effect.

Example:

const { data } = useCollection('collection/document/subcollection', { ignoreFirestoreDocumentSnapshotField: false });
console.log(data);

// [{ id: 'document', ... , __snapshot: undefined }]

No matter what the ignoreFirestoreDocumentSnapshotField parameter is set to, the __snapshot remains undefined on the returned data. Though the example provided above is a subcollection, I observe the same behavior on individual documents that are not in a subcollection.

I am using the latest 0.16 version of swr-firestore and Firebase 8.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant