fix #958 redux form initialValues not updating with state

This commit is contained in:
Baorong Li
2019-04-04 16:45:28 +08:00
parent 33abd9369e
commit b278b028cf
5 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -12,7 +12,7 @@ const FormItem = Form.Item
@withI18n()
@connect(({ loading }) => ({ loading }))
@Form.create()
@Form.create({ enableReinitialize: true })
class Login extends PureComponent {
handleOk = () => {
const { dispatch, form } = this.props
+1 -1
View File
@@ -46,7 +46,7 @@ const requests = Object.values(api).map(item => {
})
let uuid = 2
@Form.create()
@Form.create({ enableReinitialize: true })
class RequestPage extends React.Component {
constructor(props) {
super(props)
+1 -1
View File
@@ -24,7 +24,7 @@ const TwoColProps = {
}
@withI18n()
@Form.create()
@Form.create({ enableReinitialize: true })
class Filter extends PureComponent {
handleFields = fields => {
const { createTime } = fields
+1 -1
View File
@@ -15,7 +15,7 @@ const formItemLayout = {
},
}
@withI18n()
@Form.create()
@Form.create({ enableReinitialize: true })
class UserModal extends PureComponent {
handleOk = () => {
const { item = {}, onOk, form } = this.props