MCPcopy Create free account
hub / github.com/byte-fe/react-model / selector

Function selector

src/index.tsx:115–120  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

113 // s[hash] = state
114 // })
115 const selector = () => {
116 Global.mutableState[storeId].count = 0
117 Global.currentStoreId = storeId
118 const res = u ? u() : n()
119 return res
120 }
121 Global.mutableState[storeId].selector = selector
122 return {
123 // TODO: support selector

Callers 1

createStoreFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…