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

Method getValue

src/implementation.js:160–166  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

158 }
159
160 getValue(): T {
161 if (this.context[contextProp]) {
162 return this.context[contextProp].get();
163 } else {
164 return defaultValue;
165 }
166 }
167
168 onUpdate = (newValue, changedBits: number) => {
169 const observedBits: number = this.observedBits | 0;

Callers 1

ConsumerClass · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected