@rxloop/meta
v0.3.1
Published
rxloop meta plugin.
Downloads
7
Maintainers
Readme
The meta plugin
import rxloop from '@rxloop/core';
import meta from '@rxloop/meta';
const store = rxloop({
plugins: [ meta() ]
});
store.model({
name: 'test',
state: {},
reducers: {
info(state){
return state;
}
},
epics: {
login() {}
}
});
store.stream('user').subscribe((state) => {
const { epic } = store.context.user;
if(epic.current === 'login' && epic.login === 'success') {
alert('login success!');
}
});