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

Warnings in strict mode #352

@justingrant

Description

@justingrant

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions