NewOldMax / react-form-validator-core

Core validator component for react forms
MIT License
94 stars 44 forks source link

Getting a warning on form submit #44

Closed ahdeshmukh closed 5 years ago

ahdeshmukh commented 5 years ago

I am using react-form-validator-core in one of my projects, and I have noticed that I am getting a warning while performing certain actions. I have stripped down the code to the minimum where I can consistently reproduce this issue. You can find the code at https://github.com/ahdeshmukh/react-form-validator-core-warning.git

This is observed in Chrome and Edge. Did not test on any other browsers.

Steps to reproduce

warning

This warning appears only on page load. You can see the textbox again by clicking on the Clear State button. No warning is thrown if you submit the form again without refreshing the page.

Files to look for

Warning Text

Warning: Can't perform a React state update on an unmounted component. This is a no-op, but it indicates a memory leak in your application. To fix, cancel all subscriptions and asynchronous tasks in the componentWillUnmount method.

NewOldMax commented 5 years ago

Hi, Please check 0.6.2 version

ahdeshmukh commented 5 years ago

Thanks @NewOldMax . After getting version 0.6.2, I am not able to see the warning. Closing the issue.