You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Let's assume that I have bound a collection to this.posts and initialized the collection with an empty array. At the moment querying the data looks as follows:
this.posts is an empty array on startup
The data is queried from Firebase
After the request is done this.posts is populated with the data
I call this.$bind('posts', /* some query here */ )
The data is queried from Firebase and this.posts array is set to []
After the request is done this.posts populated with the data
At the 5th step, the collection is set to []. If the data is displayed on the template (which usually happens ;)), then view re-renders, so for a fraction of a second, the list of posts is empty.
It would be great if this behaviour was configurable - if we could set whether we want to clear the data before or after a firebase request is complete.
Is there any workaround? The only thing that comes to my mind is to use Vuex. But for small apps, Vuex is usually an unnecessary overkill.
The text was updated successfully, but these errors were encountered:
Let's assume that I have bound a collection to
this.posts
and initialized the collection with an empty array. At the moment querying the data looks as follows:this.posts
is an empty array on startupthis.posts
is populated with the datathis.$bind('posts', /* some query here */ )
this.posts
array is set to[]
this.posts
populated with the dataAt the 5th step, the collection is set to
[]
. If the data is displayed on the template (which usually happens ;)), then view re-renders, so for a fraction of a second, the list of posts is empty.It would be great if this behaviour was configurable - if we could set whether we want to clear the data before or after a firebase request is complete.
Is there any workaround? The only thing that comes to my mind is to use Vuex. But for small apps, Vuex is usually an unnecessary overkill.
The text was updated successfully, but these errors were encountered: