Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import { async, hold } from 'most-subject';
- import reducer from './reducer';
- const initialState = {};
- // :: AsyncSubject
- const store = hold(1, async());
- // :: Action -> ()
- export const next = store.next.bind(store);
- // :: AsyncSubject State
- export const state = store.scan(reducer, initialState);
Add Comment
Please, Sign In to add comment