Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/nanostores/nanostores
/ get
Function
get
atom/index.js:49–54 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
47
let
listeners = []
48
let
$atom = {
49
get() {
50
if
(!$atom.lc) {
51
$atom.listen(() => {})()
52
}
53
return
$atom.value
54
},
55
init: initialValue,
56
lc: 0,
57
listen(listener) {
Callers
1
computedStore
Function · 0.85
Calls
1
listen
Method · 0.65
Tested by
no test coverage detected