목록React.js (10)
개발일기장
Socket.io-client 부분 {transports : polling } 옵션
(참고: https://stackoverflow.com/questions/41381444/websocket-connection-failed-error-during-websocket-handshake-unexpected-respon) 리액트로 채팅앱만드는거에서 이거 옵션을 안넣어주니 WebSocket connection failed: Error durnig WebSocket handshake: Unexpected response code:400 애러가 자꾸 발생했음
React.js
2020. 1. 15. 11:51
react componentwillunmount 이거 어떻게 할까
Warning: Can't perform a React state update on an unmounted component. This is a no-op, but it indicates a memory leak in your application. To fix, cancel all subscriptions and asynchronous tasks in the componentWillUnmount method. 오류가 뜨는데 음 구독중인거랑 동기화?하는일을 취소해라고 함 자꾸 이게 뜨는데 해결방법을 잘 모르겠어서 찾는중임 1.chat에 연결된 이벤트를 unmount할때 다 지우기 2.MainPage에서 unmount할때 chat을 지우기 (참고한거 : https://stackoverflow.com/que..
React.js
2020. 1. 15. 10:35