docs: update graph

This commit is contained in:
Yoshua Wuyts
2016-05-15 23:01:19 +07:00
parent 6718799a8b
commit 5efb951073
+16 -12
View File
@@ -63,18 +63,22 @@ document.body.appendChild(tree)
`send()` when done to handle results `send()` when done to handle results
- __subscriptions:__ streams of data that can either be written to or read from - __subscriptions:__ streams of data that can either be written to or read from
```txt ```txt
─────────────────┐ ┌─────────────────────────────────┐
┌─▶│ Subscriptions │──┐ │ │
│ └─────────────────┘ │ ┌ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ┐ │ ┌────────
┌─────────────────┐ │ ┌─────────────────┐ │ │ User
├─▶Effects │──┤ ├────┼─│ Subscriptions │ │ └────────┘
└─────────────────┘ │ └─────────────────┘
┌──────────┐ ┌──────────┐ │ ┌───────┐ ┌──────┐ │ │ ▼
│ Reducers │◀──────────│ Models │◀───────── DOM │◀──│ User │ │ ┌─────────────────┐ │ ┌──────── ┌────────┐
└──────────┘ Action └──────────┘ Action └───────┘ └──────┘ └────┼─│ Effects │ │◀───────────│ DOM │◀───────────│ Views │
──────── ┌───────┐ ▲ └─────────────────┘ Action └──────── DOM tree └────────┘
└───────────▶│ Router │──▶│ Views │──────────┘ │ │ ▲
State └────────┘ ───────┘ DOM tree ┌─────────────────┐ ────────┐ │
│ │ Reducers │─┼────────────▶│ Router │─────────────────┘
└─────────────────┘ State └────────┘ State
└ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ┘
Model
``` ```
## Side effects ## Side effects