I am using ant design on my project. I get data from redux store with useEffect like this;
const settingsRedux = useSelector(state => state.SETTINGS)
after that I use this data for defaultValue of Input
<Input
defaultValue={settingsRedux.background_image}
onChange={e => dispatch({
type: BACKGROUND_IMAGE,
payload: e.target.value
})}
/>
It works actually. But gives console error.
Warning: [antd: Form.Item] `defaultValue` will not work on controlled Field. You should use `initialValues` of Form instead.