mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-30 02:58:05 +08:00
fix: 修复 xxxOn 在 store 里面可能不更新的问题 (#5721)
This commit is contained in:
parent
a9379b27c6
commit
f467b0b264
@ -134,11 +134,16 @@ export function HocStoreFactory(renderer: {
|
||||
this.unReaction = reaction(
|
||||
() =>
|
||||
JSON.stringify(
|
||||
getExprProperties(rest, store.data, undefined, rest)
|
||||
getExprProperties(this.props, store.data, undefined, this.props)
|
||||
),
|
||||
() =>
|
||||
this.setState({
|
||||
...getExprProperties(rest, store.data, undefined, rest)
|
||||
...getExprProperties(
|
||||
this.props,
|
||||
store.data,
|
||||
undefined,
|
||||
this.props
|
||||
)
|
||||
})
|
||||
);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user