bandor

Results 2 comments of bandor

I solved this problem by using `useState`, which has false as an initial value, and `useEffect`, which calls 'setState(isMobile)' at the time of `componentDidMount`. I think it happens if there...

@cloudbaby1991 @jikimee64 만약 state와 dispatch를 하나의 context로 만들었다면, TodoCreate를 open한 상태에서 이미 존재하는 todo를 toggle할 때 TodoCreate는 리렌더링이 일어날 겁니다. 왜냐하면 TodoCreate가 state도 useContext로 받아오고 있기 때문이죠. TodoCreate입장에선 TodoState는 불필요하기...