nextstrain / nextstrain.org

The Nextstrain website
https://nextstrain.org
GNU Affero General Public License v3.0
87 stars 49 forks source link

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

Open victorlin opened 1 month ago

victorlin commented 1 month ago

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 commented 1 month ago

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.