MCPcopy Create free account
hub / github.com/jamiebuilds/create-react-context / componentWillReceiveProps

Method componentWillReceiveProps

src/implementation.js:135–141  ·  view source on GitHub ↗
(nextProps)

Source from the content-addressed store, hash-verified

133 };
134
135 componentWillReceiveProps(nextProps) {
136 let { observedBits } = nextProps;
137 this.observedBits =
138 observedBits === undefined || observedBits === null
139 ? MAX_SIGNED_31_BIT_INT // Subscribe to all changes by default
140 : observedBits;
141 }
142
143 componentDidMount() {
144 if (this.context[contextProp]) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected