-
-
Notifications
You must be signed in to change notification settings - Fork 81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Base action types #233
Base action types #233
Conversation
.props({ | ||
launchs: types.optional(types.map(types.late(() => LaunchModel)), {}), | ||
launches: types.optional(types.map(types.late(() => LaunchModel)), {}), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't this example has been ran in awhile. The launches
and "js"
changes above did not come from the new code generation.
/** | ||
* Store, managing, among others, all the objects received through graphQL | ||
*/ | ||
export const RootStoreBase = withTypedRefs<Refs>()(MSTGQLStore | ||
.named("RootStore") | ||
.extend(configureStoreMixin([['Todo', () => TodoModel], ['User', () => UserModel]], ['Todo', 'User'])) | ||
.extend(configureStoreMixin([['Todo', () => TodoModel], ['User', () => UserModel]], ['Todo', 'User'], "js")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ditto for this change. I don't think this was updated the last time generation code was updated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good to me!
i.e. I want to call these actions from the RootStore with their string name like:
This currently complains about TS and doesn't have autocomplete for the possible action names I can call. This PR aims to add types so that it is possible to type these actions.