lahsivjar / react-stomp

React websocket component for STOMP protocol over SockJs
https://www.npmjs.com/package/react-stomp
MIT License
134 stars 41 forks source link

React 17.0.2 componentWillReceiveProps issue #210

Open GodPlsStopMe opened 2 years ago

GodPlsStopMe commented 2 years ago

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.

Please update the following components: SockJsClient

GodPlsStopMe commented 2 years ago

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