Update vuex.md - swap PUT/POST methods
This commit is contained in:
parent
5e01cf7224
commit
f15e29855e
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue