Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/NervJS/nerv
/ getContextValue
Method
getContextValue
packages/nerv/src/create-context.ts:88–91 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
86
}
87
88
getContextValue (): T {
89
const
emiter = this.context[contextProp]
90
return
isUndefined(emiter) ? defaultValue : emiter.value
91
}
92
93
render () {
94
return
onlyChild(this.props.children)(this.state.value)
Callers
1
Consumer
Class · 0.95
Calls
1
isUndefined
Function · 0.90
Tested by
no test coverage detected