fuxingloh / vue-masonry-wall

A pure vue responsive masonry layout without direct dom manipulation and ssr support.
https://nuxt-app.fuxing.dev/vue-masonry-wall
MIT License
217 stars 31 forks source link

If props pass a new items array the wall falls with item not found #16

Open moetun88 opened 4 years ago

moetun88 commented 4 years ago

If a parent element passes in an entirely new array (props) the masonry wall does not redraw

In an implementation which isn't auto loading via append simply watching for items and redrawing is a workaround. watch: { items(){ this.redraw() }
},

Perhaps an additional flag to indicate between the two types of updates items can experience?

forrust commented 3 years ago

Yes i'm experiencing the same issue, as soon as my (store) items array changes the masonry wall collapse in to an error. Does looks very promising tho!