Skip to content

Commit 16651da

Browse files
committed
switched componentWillMount to componentDidMount and componentWillUpdate to componentDidUpdate
1 parent c9b6ab6 commit 16651da

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/PivotTableUI.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -238,12 +238,12 @@ class PivotTableUI extends React.PureComponent {
238238
};
239239
}
240240

241-
componentWillMount() {
241+
componentDidMount() {
242242
this.materializeInput(this.props.data);
243243
}
244244

245-
componentWillUpdate(nextProps) {
246-
this.materializeInput(nextProps.data);
245+
componentDidUpdate() {
246+
this.materializeInput(this.props.data);
247247
}
248248

249249
materializeInput(nextData) {

0 commit comments

Comments
 (0)