Skip to content
This repository was archived by the owner on May 15, 2022. It is now read-only.

Commit c7f4bf0

Browse files
committed
remove shouldComponentUpdate methods
1 parent 9f151be commit c7f4bf0

File tree

4 files changed

+0
-30
lines changed

4 files changed

+0
-30
lines changed

src/components/DatBoolean.jsx

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,6 @@ class DatBoolean extends React.Component {
3535
});
3636
}
3737

38-
shouldComponentUpdate(nextProps, nextState) {
39-
return nextProps.id !== this.props.id ||
40-
nextProps.path !== this.props.path ||
41-
nextProps.label !== this.props.label ||
42-
nextState.value !== this.state.value;
43-
}
44-
4538
getValue(props = this.props) {
4639
return result(props.data, props.path);
4740
}

src/components/DatButton.jsx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,6 @@ class DatButton extends React.Component {
1212
this.handleClick = this.handleClick.bind(this);
1313
}
1414

15-
shouldComponentUpdate(nextProps, nextState) {
16-
return nextProps.label !== this.props.label;
17-
}
18-
1915
handleClick(event) {
2016
}
2117

src/components/DatNumber.jsx

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -48,17 +48,6 @@ class DatNumber extends React.Component {
4848
});
4949
}
5050

51-
shouldComponentUpdate(nextProps, nextState) {
52-
return nextProps.id !== this.props.id ||
53-
nextProps.path !== this.props.path ||
54-
nextProps.label !== this.props.label ||
55-
nextProps._labelWidth !== this.props._labelWidth ||
56-
nextProps.min !== this.props.value ||
57-
nextProps.max !== this.props.value ||
58-
nextProps.step !== this.props.value ||
59-
nextState.value !== this.state.value;
60-
}
61-
6251
getValue(props = this.props) {
6352
return this.applyConstraints(result(props.data, props.path));
6453
}

src/components/DatString.jsx

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,6 @@ class DatString extends React.Component {
3333
});
3434
}
3535

36-
shouldComponentUpdate(nextProps, nextState) {
37-
return nextProps.id !== this.props.id ||
38-
nextProps.path !== this.props.path ||
39-
nextProps.label !== this.props.label ||
40-
nextProps._labelWidth !== this.props._labelWidth ||
41-
nextState.value !== this.state.value;
42-
}
43-
4436
getValue(props = this.props) {
4537
return result(props.data, props.path);
4638
}

0 commit comments

Comments
 (0)