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

[Bug] Warning: Using UNSAFE_componentWillMount in strict mode... #533

Open
NafiurSiddiqui opened this issue Sep 2, 2023 · 0 comments
Open

Comments

@NafiurSiddiqui
Copy link

Bug Report

Warning: Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code

Describe the bug

I get the following warning in the console -

client.js:1  Warning: Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.

* Move code with side effects to componentDidMount, and set initial state in the constructor.

Please update the following components: SideEffect(NullComponent)

It is caused by react-helmet which is outdated now and started throwing error in the console.

Is this a regression?

Steps To Reproduce the error

  1. simply running npm run dev after hooking up your WP url.

Expected behaviour

No warning of such.

CodeSandbox or Live Example of Bug

Screenshot or Video Recording

Your environment

  • OS: OS Name: Microsoft Windows 11 Home Single Language
    OS Version: 10.0.22621 N/A Build 22621
  • Node version: v19.7.0
  • Npm version: 9.6.5
  • Browser name and version: Ms Edge Version 116.0.1938.69

Additional context

@NafiurSiddiqui NafiurSiddiqui changed the title [Bug] [Bug] Warning: Using UNSAFE_componentWillMount in strict mode... Sep 2, 2023
@NafiurSiddiqui NafiurSiddiqui mentioned this issue Sep 2, 2023
11 tasks
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