state-management

Returning Promises from Vuex actions

别等时光非礼了梦想. 提交于 2019-11-26 04:39:30
问题 I recently started migrating things from jQ to a more structured framework being VueJS, and I love it! Conceptually, Vuex has been a bit of a paradigm shift for me, but I\'m confident I know what its all about now, and totally get it! But there exist a few little grey areas, mostly from an implementation standpoint. This one I feel is good by design, but don\'t know if it contradicts the Vuex cycle of uni-directional data flow. Basically, is it considered good practice to return a promise(