Skip to content

Commit 3614111

Browse files
committed
remove _forceUpdate
1 parent 0c243ac commit 3614111

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

lib/sectioned-multi-select.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,6 @@ class SectionedMultiSelect extends PureComponent {
243243
selector: false,
244244
searchTerm: '',
245245
highlightedChildren: [],
246-
forceUpdate: false,
247246
styles: StyleSheet.flatten([defaultStyles, props.styles]),
248247
colors: StyleSheet.flatten([defaultColors, props.colors]),
249248
}
@@ -293,11 +292,6 @@ class SectionedMultiSelect extends PureComponent {
293292
return toSplice
294293
}
295294

296-
_forceUpdate = () => {
297-
this.setState({
298-
forceUpdate: !this.state.forceUpdate,
299-
})
300-
}
301295

302296
_getSelectLabel = () => {
303297
const {
@@ -419,7 +413,6 @@ class SectionedMultiSelect extends PureComponent {
419413
onSelectedItemsChange([])
420414
this.setState({ highlightedChildren: [] })
421415
onSelectedItemObjectsChange && this._broadcastItemObjects([])
422-
this._forceUpdate()
423416
}
424417

425418
_selectAllItems = () => {
@@ -446,7 +439,6 @@ class SectionedMultiSelect extends PureComponent {
446439

447440
onSelectedItemsChange(newItems)
448441
onSelectedItemObjectsChange && onSelectedItemObjectsChange(items)
449-
this._forceUpdate()
450442
}
451443

452444
// _removeItems = (items) => {
@@ -882,7 +874,6 @@ class SectionedMultiSelect extends PureComponent {
882874
searchTerm={searchTerm}
883875
_toggleItem={this._toggleItem}
884876
highlightedChildren={this.state.highlightedChildren}
885-
forceUpdate={this.state.forceUpdate}
886877
{...this.props}
887878
/>
888879
</View>

0 commit comments

Comments
 (0)