Skip to content

Commit 79e7380

Browse files
author
Marc-André Rivet
committed
fix incorrect merge
1 parent a3bd935 commit 79e7380

File tree

1 file changed

+3
-3
lines changed
  • packages/dash-table/demo

1 file changed

+3
-3
lines changed

packages/dash-table/demo/App.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ class App extends Component {
4747
const setProps = memoizeOne(() => {
4848
return newProps => {
4949
console.info('--->', newProps);
50-
this.setState({
51-
tableProps: R.merge(this.state.tableProps, newProps),
52-
});
50+
this.setState(prevState => ({
51+
tableProps: R.merge(prevState.tableProps, newProps)
52+
}));
5353
};
5454
});
5555

0 commit comments

Comments
 (0)