-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Labels
Description
The store's actions should probably not pass the full axios response to the subsequent promise then() handlers. At that point HTTP doesn't really matter and should be abstracted out. This way the components that are actually calling these actions are dealing solely with the returned json.
Using response.data.data.whatever within a component feels wrong.
resolve(response)
// should be
resolve(response.data)
// if you *really* wanted access to the full response, this could work...
resolve(response.data, response)
Reactions are currently unavailable