MCPcopy Create free account
hub / github.com/sshwsfc/xadmin / shouldComponentUpdate

Function shouldComponentUpdate

xadmin-dashboard/src/components/Cell.js:161–166  ·  view source on GitHub ↗
(nextProps, nextState)

Source from the content-addressed store, hash-verified

159 }
160
161 shouldComponentUpdate(nextProps, nextState) {
162 if(nextProps.editMode) { return true }
163 // 在运行模式只有state变化时才刷新
164 if(nextState != this.state) { return true }
165 return false
166 }
167
168 componentDidCatch(error, info) {
169 this.setState({ hasError: true })

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected