gdg-tangier / vue-firestore

:cloud: Cloud Firestore binding in realtime with Vuejs
MIT License
235 stars 28 forks source link

Manually binding doesn't resolve if collection empty #8

Closed travisnguyen20 closed 6 years ago

travisnguyen20 commented 6 years ago

I need to something after binding complete, but it seem doesn't work properly. if I have 1 portfolio_items with portfolio_id = 'test' , portfolioLoading is set to false otherwise both "then" and "catch" doesn't execute. this.$binding('portfolio_items', firebase.firestore().collection('portfolio_items').where('portfolio_id', '==', 'test')) .then((items) => { console.log(items) this.portfolioLoading = false }).catch((err) => { this.portfolioLoading = false console.log(err) })

Anyone can help me out?

travisnguyen20 commented 6 years ago

Seem update to version 0.2.6 solve this issue. so I close this

amranidev commented 6 years ago

Glad you solved it :+1: