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

Function createCursor

code/third-party/public/app.js:11799–11803  ·  view source on GitHub ↗
(defaultValue)

Source from the content-addressed store, hash-verified

11797 var index = -1;
11798
11799 function createCursor(defaultValue) {
11800 return {
11801 current: defaultValue
11802 };
11803 }
11804
11805 function isEmpty() {
11806 return index === -1;

Callers 3

ReactFiberHostContextFunction · 0.70
ReactFiberLegacyContextFunction · 0.70
ReactFiberNewContextFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected