The video for this lesson is currently being updated, please read the transcript instead.

Creating addEvent action in store

In our add_event mutation, we're doing two things.

We're pushing the; we're creating this object and then we're pushing it to the state, that's

to the events properly in the state and there are also triggering a post which goes off

and sends it to our server.

So I'd like to move some of this functionality now into an action, because you'll recall

that actions can be asynchronous and and what I'd like to do is make it so that we don't

To view the complete lesson you'll need to login or join this course.


Click to load comments...