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) })
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?