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

Function createCursor

code/dependency-injection/public/app.js:12659–12663  ·  view source on GitHub ↗
(defaultValue)

Source from the content-addressed store, hash-verified

12657 var index = -1;
12658
12659 function createCursor(defaultValue) {
12660 return {
12661 current: defaultValue
12662 };
12663 }
12664
12665 function isEmpty() {
12666 return index === -1;

Callers 3

ReactFiberHostContextFunction · 0.70
ReactFiberLegacyContextFunction · 0.70
ReactFiberNewContextFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected