Closed vbylen closed 2 years ago
Yes, it should work. However, you cannot replace run
on a query or mutation with a mst-async-task.
It's still experimental, but you can now use queries and mutations as properties just like tasks in mst-async-task.
const UserStore = types
.model({
getUser: types.optional(GetUserQuery, {}),
updateUser: types.optional(UpdateUserMutation, {}),
})
.actions(self => ({
afterCreate() {
self.getUser.run();
}
}):
It's available in mst-query@1.1.0-alpha.3
Can I safely use
mst-query
with mst-async-task?Thanks for creating a great library.