Created
June 21, 2018 23:10
-
-
Save jmaguirrei/1f0354db07fc987d08ccbe4cb30f96b4 to your computer and use it in GitHub Desktop.
Meetings Store without (explicit) Mobx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { createStore } from '/imports/common/classes/'; | |
import { myMeetings } from './extends/myMeetings'; | |
import { myMeeting } from './sets'; | |
export const createStoreDefinition = Stores => ({ | |
name: 'MeetingsStore', | |
Stores, | |
computed: { | |
myMeetings, | |
myMeeting, | |
}, | |
}); | |
export default Stores => { | |
const StoreDefinition = createStoreDefinition(Stores); | |
return createStore(StoreDefinition); | |
}; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment