react-stomp
react-stomp copied to clipboard
React 17.0.2 componentWillReceiveProps issue
React 17.02 throws following Error while using react-stomp, any way to fix that?
index.js:1 Warning: Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.
- Move data fetching code or side effects to componentDidUpdate.
- If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://reactjs.org/link/derived-state
Please update the following components: SockJsClient
additional error message index.js:1 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. at SockJsClient (http://localhost:3000/static/js/vendors~main.chunk.js:58235:5) at div at div