MCPcopy Create free account
hub / github.com/krasimir/react-in-patterns / createCursor

Function createCursor

code/composition/public/app.js:12704–12708  ·  view source on GitHub ↗
(defaultValue)

Source from the content-addressed store, hash-verified

12702 var index = -1;
12703
12704 function createCursor(defaultValue) {
12705 return {
12706 current: defaultValue
12707 };
12708 }
12709
12710 function isEmpty() {
12711 return index === -1;

Callers 3

ReactFiberHostContextFunction · 0.70
ReactFiberLegacyContextFunction · 0.70
ReactFiberNewContextFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected