Update vuex.md - swap PUT/POST methods
This commit is contained in:
parent
5e01cf7224
commit
f15e29855e
|
@ -120,8 +120,8 @@ create:
|
||||||
1. An action `receiveSomethingError`, to handle the error callback
|
1. An action `receiveSomethingError`, to handle the error callback
|
||||||
1. An action `fetchSomething` to make the request.
|
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:
|
1. In case your application does more than a `GET` request you can use these as examples:
|
||||||
- `PUT`: `createSomething`
|
- `POST`: `createSomething`
|
||||||
- `POST`: `updateSomething`
|
- `PUT`: `updateSomething`
|
||||||
- `DELETE`: `deleteSomething`
|
- `DELETE`: `deleteSomething`
|
||||||
|
|
||||||
The component MUST only dispatch the `fetchNamespace` action. Actions namespaced with `request` or `receive` should not be called from the component
|
The component MUST only dispatch the `fetchNamespace` action. Actions namespaced with `request` or `receive` should not be called from the component
|
||||||
|
|
Loading…
Reference in New Issue