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

Method componentWillUnmount

src/implementation.js:154–158  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

152 }
153
154 componentWillUnmount() {
155 if (this.context[contextProp]) {
156 this.context[contextProp].off(this.onUpdate);
157 }
158 }
159
160 getValue(): T {
161 if (this.context[contextProp]) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected