Update vuex.md - swap PUT/POST methods

This commit is contained in:
Filipa Lacerda 2019-01-18 15:32:13 +00:00
parent 5e01cf7224
commit f15e29855e
1 changed files with 2 additions and 2 deletions

View File

@ -120,8 +120,8 @@ create:
1. An action `receiveSomethingError`, to handle the error callback
1. An action `fetchSomething` to make the request.
1. In case your application does more than a `GET` request you can use these as examples:
- `PUT`: `createSomething`
- `POST`: `updateSomething`
- `POST`: `createSomething`
- `PUT`: `updateSomething`
- `DELETE`: `deleteSomething`
The component MUST only dispatch the `fetchNamespace` action. Actions namespaced with `request` or `receive` should not be called from the component