Skip to content

Instantly share code, notes, and snippets.

@jmaguirrei
Created June 21, 2018 23:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jmaguirrei/1f0354db07fc987d08ccbe4cb30f96b4 to your computer and use it in GitHub Desktop.
Save jmaguirrei/1f0354db07fc987d08ccbe4cb30f96b4 to your computer and use it in GitHub Desktop.
Meetings Store without (explicit) Mobx
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