Follow-up from "Add Dependency List Vuex store" - create flash in view layer
The following discussion from !13674 (merged) should be addressed:
-
@ealcantara started a discussion: (+2 comments) This looks like a view layer concern. What is the reason to display a flash in the data layer? Perhaps, if you return the action’s promise, you can handle the promise in the Vue component that dispatches the action and create the flash there.
The flash is created in the Vuex store (guided by examples in our docs), but that is a view layer concern.
The better approach would be to make sure the actions are composable first, and then catch the error in the App component, and finally trigger the flash from there.