Skip to content

DocumentReference in a doc obtained with snapshotChanges arent instanceof firebase.firestore.DocumentReference #2690

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

Closed
rulamon opened this issue Nov 25, 2020 · 2 comments

Comments

@rulamon
Copy link

rulamon commented Nov 25, 2020

Version info

Angular: 11.0.0

Firebase: 8.1.1

AngularFire: 6.1.1 and 6.1.2

How to reproduce these conditions

https://stackblitz.com/edit/angularfire-docref-bug?file=src/app/app.component.html

Steps to set up and reproduce

Retrieve a collection with a document containing a DocumentReference through AngularFirestore.collection.snapshotChanges, and check document.docRef instanceof firebase.firestore.DocumentReference

Debug output

** Errors in the JavaScript console **

** Output from firebase.database().enableLogging(true); **

** Screenshots **

Expected behavior

docRef instanceof firebase.firestore.DocumentReference should return true

Actual behavior

docRef instanceof firebase.firestore.DocumentReference returns false, this is a regression

@jamesdaniels
Copy link
Member

Perhaps this is the underlying issue firebase/firebase-js-sdk#4125

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

2 participants