MCPcopy Create free account
hub / github.com/Lobos/react-ui / componentWillUpdate

Function componentWillUpdate

src/Tree/Tree.js:51–56  ·  view source on GitHub ↗
(nextProps, nextState)

Source from the content-addressed store, hash-verified

49 }
50
51 componentWillUpdate (nextProps, nextState) {
52 // initValue 和 initData 分开处理
53 if (nextState.value !== this.state.value) {
54 this.init(nextState.data, nextState.value);
55 }
56 }
57
58 formatValue (value) {
59 return toArray(value, this.props.sep);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…