[Mobx] Since strict-mode is enabled, changing (observed) observable values without using an action is not allowed

나의 재물운? 연애운은?

AI가 봐주는 내 사주팔자 - 운세박사

https://aifortunedoctor.com/

[Mobx] Since strict-mode is enabled, changing (observed) observable va…

영리치 0 2,729 2021.10.25 13:41

[MobX] Since strict-mode is enabled, changing (observed) observable values without using an action is not allowed. Tried to modify: User@2.seconds


Mobx에서 state를 직접 수정하는 것은 안됨.

state를 수정하는 매소드를 선언하고 그 매소드로만 state들을 수정해주어야 함.

작동하는 데 문제는 없지만, 경고문 뜨는 것은 왠만하면 그렇게 하지 않는 게 좋음.

Comments

나의 재물운? 연애운은?

AI가 봐주는 내 사주팔자 - 운세박사

https://aifortunedoctor.com/

Category
실시간 인기글
난 아버지처럼 되지 않을래요
영리치
등록된 글이 없습니다.
Magazine
훈남/훈녀
 
 
 
상점
Facebook Twitter GooglePlus KakaoStory NaverBand