mirror of
https://github.com/status-im/re-frame.git
synced 2025-02-23 15:28:09 +00:00
docs: "effected"->"affected"; "actions"->"puts into action"
-- In the first case, the object of the clause is the state, not the change itself, so the verb should be "affected", not "effected". -- In the second case, "actions" is not a verb. The word "effects" would work here but would make the sentence sound super awkward, so I went with "puts into action".
This commit is contained in:
parent
7e21264cd0
commit
51ccccd97f
@ -126,7 +126,7 @@ a **description of `effects`**. This description is a data structure
|
||||
which says, declaratively, how the world should change (because of the event).
|
||||
|
||||
Much of the time, only the "application state" of the SPA itself need
|
||||
change, but sometimes the outside world must also be effected
|
||||
change, but sometimes the outside world must also be affected
|
||||
(localstore, cookies, databases, emails, logs, etc).
|
||||
|
||||
### 3rd Domino - Effect Handling
|
||||
@ -296,7 +296,7 @@ Which says "when you see a `:delete-item` event, use `h` to handle it".
|
||||
|
||||
### Code For Domino 3
|
||||
|
||||
An `effect handler` (function) actions the `effects` returned by `h`:
|
||||
An `effect handler` (function) puts into action the `effects` returned by `h`:
|
||||
```clj
|
||||
{:db (dissoc-in db [:items item-id])}
|
||||
```
|
||||
|
Loading…
x
Reference in New Issue
Block a user