-
Avoid mutating a prop directly since the value will be overwritten whenever the parent component re-renders. ~ 에러Front-end/Vue.js 2020. 10. 23. 15:06
props 로 받은 데이터를 직접사용하면
Avoid mutating a prop directly since the value will be overwritten whenever the parent component re-renders. Instead, use a data or computed property based on the prop's value. 라는 에러가 뜬다.
props로 받은 데이터를 복사해서 사용을 해야 에러가 발생하지 않는다.
'Front-end > Vue.js' 카테고리의 다른 글
DOM과 Virtual DOM (0) 2021.05.03 정의를 했음에도 Property or method OO is not defined on the instance but referenced during render. 에러가 뜨는경우 (0) 2021.03.08 Vue.js ) 폴더에있는 local img를 데이터모델로 받아온 후 페이지에 로드하기 (0) 2020.05.01 공식문서 ) 컴포넌트 작성방법 (0) 2020.02.21 오류 ) Source Control에 no source control providers registered (0) 2020.01.02