You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)
The text was updated successfully, but these errors were encountered:
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.The text was updated successfully, but these errors were encountered: