Skip to content
This repository has been archived by the owner on Jul 19, 2019. It is now read-only.

Warnings in strict mode #352

Open
justingrant opened this issue Aug 19, 2018 · 0 comments
Open

Warnings in strict mode #352

justingrant opened this issue Aug 19, 2018 · 0 comments

Comments

@justingrant
Copy link

I just wrapped my react.js app in a <StrictMode> component, and it yielded the following warnings, two of which are complaining about react-autocomplete (version 1.8.1).

Warning: Unsafe lifecycle methods were found within a strict-mode tree:
in App

componentWillMount: Please update the following components to use componentDidMount instead: Autocomplete, ReactFinalForm

componentWillReceiveProps: Please update the following components to use static getDerivedStateFromProps instead: Autocomplete, Transition, t

componentWillUpdate: Please update the following components to use componentDidUpdate instead: ReactFinalForm

Learn more about this warning here:
https://fb.me/react-strict-mode-warnings

I assume that these warnings will repro in any app that's using react-autocomplete wrapped in a <StrictMode> component, but if not let me know and I'll build a simplified repro case.

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

No branches or pull requests

1 participant