Open KONRADS098 opened 1 year ago
Head to https://github.com/angular/angularfire/blob/master/README.md
Angular: N/A Firebase: N/A AngularFire: N/A Other (e.g. Ionic/Cordova, Node, browser, operating system): N/A
Failing test unit, Stackblitz demonstrating the problem N/A Steps to set up and reproduce N/A Sample data and security rules N/A
Errors in the JavaScript console N/A Output from firebase.database().enableLogging(true); N/A Screenshots N/A
#3343
The declared retrieved collection itemCollection is to be used by passing it into the collectionData method as a parameter.
itemCollection
collectionData
constructor() { const itemCollection = collection(this.firestore, 'items'); this.item$ = collectionData(itemCollection); }
The declared retrieved collection itemCollection is not being used, instead an unexisting collection collection is being used.
collection
constructor() { const itemCollection = collection(this.firestore, 'items'); this.item$ = collectionData(collection); }
Fixed!
Head to https://github.com/angular/angularfire/blob/master/README.md
Version info
Angular: N/A Firebase: N/A AngularFire: N/A Other (e.g. Ionic/Cordova, Node, browser, operating system): N/A
How to reproduce these conditions
Failing test unit, Stackblitz demonstrating the problem N/A Steps to set up and reproduce N/A Sample data and security rules N/A
Debug output
Errors in the JavaScript console N/A Output from firebase.database().enableLogging(true); N/A Screenshots N/A
Related Issues
#3343
Expected behavior
The declared retrieved collection
itemCollection
is to be used by passing it into thecollectionData
method as a parameter.Actual behavior
The declared retrieved collection
itemCollection
is not being used, instead an unexisting collectioncollection
is being used.