First question loads

This commit is contained in:
Berkeley Martinez
2015-12-26 00:42:39 -08:00
parent 935760a84a
commit 205b0da43f
7 changed files with 374 additions and 324 deletions

View File

@@ -2,10 +2,17 @@ import { Cat } from 'thundercats';
import stamp from 'stampit';
import { Disposable, Observable } from 'rx';
import { postJSON$ } from '../utils/ajax-stream.js';
import { AppActions, AppStore } from './flux';
import { HikesActions } from './routes/Hikes/flux';
import { JobActions, JobsStore} from './routes/Jobs/flux';
const ajaxStamp = stamp({
methods: {
postJSON$: postJSON$
}
});
export default Cat().init(({ instance: cat, args: [services] }) => {
const serviceStamp = stamp({
methods: {
@@ -30,7 +37,7 @@ export default Cat().init(({ instance: cat, args: [services] }) => {
}
});
cat.register(HikesActions.compose(serviceStamp), null, services);
cat.register(HikesActions.compose(serviceStamp, ajaxStamp), null, services);
cat.register(AppActions.compose(serviceStamp), null, services);
cat.register(AppStore, null, cat);