Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

React 17.0.2 componentWillReceiveProps issue #210

Open
GodPlsStopMe opened this issue Apr 21, 2022 · 1 comment
Open

React 17.0.2 componentWillReceiveProps issue #210

GodPlsStopMe opened this issue Apr 21, 2022 · 1 comment

Comments

@GodPlsStopMe
Copy link

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

@GodPlsStopMe
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant