[Vuejs]-How to find/replace specific object in Vuex?

0👍

You give vuex action too much to do. Let it do one single task – upload the file. The placeholder/preloader should be handled by the component even without a vuex state. All the component needs to know is whether the image is uploading or not in order to show the loading indicator. Since your action returns a Promise your component will know when it’s ready.

Leave a comment