Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warning: Can't call setState (or forceUpdate) on an unmounted component. #101

Open
danielesalvatore opened this issue Sep 23, 2018 · 0 comments

Comments

@danielesalvatore
Copy link

Dear all,

thank you for your amazing library.
I would like to share with you the following warning I am getting on the initial rendering of my form:

screen shot 2018-09-23 at 17 43 34

I am using react-times in conjunction with redux-form.
I created a render component for rudux-form as following:

export const renderTimePicker = ({input, meta: {error}, withoutIcon, timeMode = "24", className}) => {
    return (
        <div className="form-group">
            {error && <span className="error-message">{error}</span>}
            <TimePicker
                className={className}
                onTimeChange={input.onChange}
                time={moment(input.value).format("HH:mm")}
                timeMode={timeMode}
                theme="classic"
                withoutIcon={withoutIcon}
            />
        </div>
    );
};

Versions

  • react-times: 3.1.9
  • react: 16.5.2
  • redux-form: 7.4.2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant