docs: update architecture

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