MCPcopy
hub / github.com/nadbm/react-datasheet / componentDidUpdate

Function componentDidUpdate

src/DataSheet.js:464–470  ·  view source on GitHub ↗
(prevProps, prevState)

Source from the content-addressed store, hash-verified

462 }
463
464 componentDidUpdate (prevProps, prevState) {
465 let { start, end } = this.state
466 let prevEnd = prevState.end
467 if (!isEmpty(end) && !(end.i === prevEnd.i && end.j === prevEnd.j) && !this.isSelectionControlled()) {
468 this.props.onSelect && this.props.onSelect({ start, end })
469 }
470 }
471
472 isSelected (i, j) {
473 const {start, end} = this.getState()

Callers

nothing calls this directly

Calls 1

isEmptyFunction · 0.70

Tested by

no test coverage detected