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

Replace Vuex state in main file

So what we want to do now is, get the events from the server on page reload and populate

the Vuex store with those stored events.

So just recall on our server, we have this events array and then if we add a bunch of

events, that's going to start to fill up and then when we refresh the page, we want to

see those in our Vuex store.

Here's the first step.

So let's open our web entry here and Vuex has this method called store.replaceState()

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


Click to load comments...