Courses
Vue Foundations Vue Fullstack Vue Enterprise
Articles
Latest Topics
More
Newsletter Sponsorship Discord About
The video for this lesson is currently being updated, please read the transcript instead.
Advanced Vue 2 - Vuex & SSR > Lesson 43

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()


Back to course page

Click to load comments...

Courses
  • Vue Foundations
  • Vue Fullstack
  • Vue Enterprise
Articles
  • Latest
  • Topics
Newsletter
  • Join
  • Sponsorship
More
  • Discord
  • Vue.js jobs
  • About

Vue.js Developers © 2021. View our privacy policy .

  • RSS
  • |
  • Atom