MCPcopy
hub / github.com/NervJS/nerv / componentWillReceiveProps

Method componentWillReceiveProps

packages/nerv/src/create-context.ts:44–48  ·  view source on GitHub ↗
(nextProps: ProviderProps<T>)

Source from the content-addressed store, hash-verified

42 }
43
44 componentWillReceiveProps (nextProps: ProviderProps<T>) {
45 if (!objectIs(this.props.value, nextProps.value)) {
46 this.emiter.set(nextProps.value)
47 }
48 }
49
50 render () {
51 return this.props.children

Callers

nothing calls this directly

Calls 2

objectIsFunction · 0.90
setMethod · 0.45

Tested by

no test coverage detected