개요
상태 유지하기



Window.localStorage


JSON.stringify

JSON.parse

Vuex에 적용하기

plugins
vuex-persistedstate
Vuex store의 상태를 브라우저 local storage에 저장해주는 plugin
페이지를 새로 고침하거나 브라우저를 종료하였다가 다시 열었을 때, 이전상태를 유지할 수 있도록 해줌
설치
npm i vuex-persistedstate적용



Vuex Binding Helper
import {mapState, mapActions} from 'vuex'mapState


mapActions


mapGetters

[참고]

modules

