Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/git/21.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Reactjs 默认情况下,当文本框变为空时,Redux表单字段的初始值将消失_Reactjs_React Native_React Redux_Redux Form_Saga - Fatal编程技术网

Reactjs 默认情况下,当文本框变为空时,Redux表单字段的初始值将消失

Reactjs 默认情况下,当文本框变为空时,Redux表单字段的初始值将消失,reactjs,react-native,react-redux,redux-form,saga,Reactjs,React Native,React Redux,Redux Form,Saga,我使用的是Redux表单版本8.2.4 我已将某些对象默认声明为空: import { FieldArray } from 'redux-form'; this.props.addValues({ value 1: null, value 2: null }) <FieldArray name="TestData" component={this.getData}/> 但它不起作用。请共享更多代码或更好地创建代码沙盒以重现问题请共享更多代码或更好地创建代码沙盒以重现问题 o

我使用的是Redux表单版本8.2.4

我已将某些对象默认声明为空:

import { FieldArray } from 'redux-form';

 this.props.addValues({ value 1: null, value 2: null })

 <FieldArray name="TestData" component={this.getData}/>

但它不起作用。

请共享更多代码或更好地创建代码沙盒以重现问题请共享更多代码或更好地创建代码沙盒以重现问题
onChildParamInit={this.onChildParamInit.bind(this)}

onChildParamInit = () => {
this.props.change('value1' , null);
}