2.1.1 • Published 5 years ago

iom v2.1.1

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago
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

5 years ago

2.1.0

6 years ago

2.0.2

6 years ago

2.0.1

6 years ago

2.0.0

6 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.0

6 years ago

1.0.0-rc.19

6 years ago

1.0.0-rc.18

6 years ago

1.0.0-rc.17

6 years ago

1.0.0-rc.16

6 years ago

0.0.1

7 years ago