Files
freeCodeCamp/common/app/routes/Jobs/flux/Store.js

11 lines
287 B
JavaScript
Raw Normal View History

import { Store } from 'thundercats';
2015-07-25 15:42:03 -07:00
const { setter } = Store;
export default Store()
.refs({ displayName: 'JobsStore' })
2015-07-25 15:15:59 -07:00
.init(({ instance: jobsStore, args: [cat] }) => {
2015-07-25 15:42:03 -07:00
let jobActions = cat.getActions('JobActions');
jobsStore.register(setter(jobActions.setJobs));
});