-
카테고리
-
세부 분야
프론트엔드
-
해결 여부
미해결
mapState
22.12.02 17:44 작성 조회수 163
1
mapState 는 computed 에서 사용하나요?
mapActions도 ??
답변을 작성해보세요.
1
장기효(캡틴판교)
지식공유자2022.12.02
안녕하세요, 네 mapState()는 computed에서 사용하시면 됩니다.
https://vuex.vuejs.org/guide/state.html#the-mapstate-helper
맵 액션은 메서드를 묶을 때 사용하셔야 해요 :)
https://vuex.vuejs.org/guide/actions.html#dispatching-actions-in-components
답변 1