Skip to content

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

@danielesalvatore

Description

@danielesalvatore

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

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