react-times icon indicating copy to clipboard operation
react-times copied to clipboard

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

Open danielesalvatore opened this issue 6 years ago • 0 comments

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

danielesalvatore avatar Sep 23 '18 15:09 danielesalvatore