Inflearn Community Q&A
computed 질문이 있습니다.
Written on
·
260
0
해당 강의에서 currentUser에 store.state.user를 받을때 computed로 받았는데 이유를 알고싶어 글 남깁니다!
firebasevuejs클론코딩
Answer 1
1
jinsyu
Instructor
vuex에서 저장된 user상태는 언제든지 상태 변화가 가능하기 때문에 computed로 vuex user 상태 변화에 따로 user state도 알맞게 변환하가 위함입니다.





감사합니다!