2.1.1 • Published 7 years ago
iom v2.1.1
import Store from 'iom';const INITIAL_STATE = { on: false };const store = new Store(INITIAL_STATE);const subscriber = console.log;const cancel = store.subscribe(subscriber);
// => { on: false }const toggleOn = state => ({ ...state, on: !state.on });store.update(toggleOn);
// => { on: true }cancel();2.1.1
7 years ago
2.1.0
7 years ago
2.0.2
7 years ago
2.0.1
7 years ago
2.0.0
7 years ago
1.1.2
7 years ago
1.1.1
7 years ago
1.1.0
7 years ago
1.0.0
7 years ago
1.0.0-rc.19
7 years ago
1.0.0-rc.18
7 years ago
1.0.0-rc.17
7 years ago
1.0.0-rc.16
7 years ago
0.0.1
9 years ago