Skip to content

[v3.0.5] Old life cycle warning - AutosizeInput #3773

Closed

Description

@devlemire

I'm aware that this is an active issue that many users are aware of. However, from what I read it looks like one last warning got swept under the carpet while celebrating the release of 3.0.5. Which by the way, thank you for this, it cleared up a TON of warnings in my Unit Tests.

However... there is one last warning that wasn't taken care of. It occurs in the AutosizeInput component and it uses "componentWillReceiveProps" This is the last warning that is clogging my tests and my console in my dev tools. I would really love to see a fix for this.

Again thanks for everything you've done thus far, I'm very grateful. Here's what my console says:

console.warn node_modules/react-dom/cjs/react-dom.development.js:11494
      Warning: componentWillReceiveProps has been renamed, and is not recommended for use. See https://fb.me/react-async-component-lifecycle-hooks for details.

      * Move data fetching code or side effects to componentDidUpdate.
      * If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://fb.me/react-derived-state
      * Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress this warning in non-strict mode. In React 17.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run `npx react-codemod rename-unsafe-lifecycles` in your project source folder.

      Please update the following components: AutosizeInput

Activity

  1. changed the title [-][v3.0.5] Old life cycle warning[/-] [+][v3.0.5] Old life cycle warning - AutosizeInput[/+] on Sep 23, 2019
  2. mpopv commented on Sep 23, 2019

    @mpopv

    Duplicate of #3720

  3. julien51 commented on Sep 23, 2019

    @julien51

    This is not quite a duplicate and more like a regression as this issue #3720 should have indeed been fixed by the 3.0.5?

  4. ranneyd commented on Sep 23, 2019

    @ranneyd
  5. gwyneplaine commented on Sep 24, 2019

    @gwyneplaine
    Collaborator

    @devlemire I don't have publishing rights to react-input-autosize, but I'll have a chat with @JedWatson to get this sorted ASAP, thanks for bringing this to our attention

  6. devlemire commented on Sep 24, 2019

    @devlemire
    Author

    Thank you for your time!

  7. ranneyd commented on Sep 24, 2019

    @ranneyd

    Gonna drop this guy here, since it's necessary for getting this lib fixed.

    JedWatson/react-input-autosize#167

  8. ranneyd commented on Sep 25, 2019

    @ranneyd
  9. devlemire commented on Sep 27, 2019

    @devlemire
    Author

    @gwyneplaine Were you able to get in contact? Sorry for the constant annoyance. It looks like a PR is available to solve the issue.

  10. erwanriou commented on Sep 30, 2019

    @erwanriou

    +1
    Awaiting feedback. Go the exact same issue now that i started update all my react libraries

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions