Skip to content

Instantly share code, notes, and snippets.

@robinheinze
Last active July 22, 2019 20:31
Show Gist options
  • Save robinheinze/5ff291f9d1d01db29c0de64ad2224427 to your computer and use it in GitHub Desktop.
Save robinheinze/5ff291f9d1d01db29c0de64ad2224427 to your computer and use it in GitHub Desktop.
Question Store with extension
export const QuestionStoreModel = types
.model("QuestionStore")
.props({
questions: types.optional(types.array(QuestionModel), []),
})
.extend(withEnvironment)
.views(self => ({})) // eslint-disable-line @typescript-eslint/no-unused-vars
.actions(self => ({})) // eslint-disable-line @typescript-eslint/no-unused-vars
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment