react-times
react-times copied to clipboard
Warning: Can't call setState (or forceUpdate) on an unmounted component.
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:

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