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

Console warning in dev mode: UNSAFE_componentWillMount is considered legacy #875

Open
victorlin opened this issue May 22, 2024 · 1 comment

Comments

@victorlin
Copy link
Member

This appears on any page defined in static-site/. Full text:

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)

@victorlin
Copy link
Member Author

I took a quick look and can't seem to figure out where this is coming from. componentWillMount is not used in our code, so it's likely from some downstream dependency.

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