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

Function createCursor

code/higher-order-components/public/app.js:12560–12564  ·  view source on GitHub ↗
(defaultValue)

Source from the content-addressed store, hash-verified

12558 var index = -1;
12559
12560 function createCursor(defaultValue) {
12561 return {
12562 current: defaultValue
12563 };
12564 }
12565
12566 function isEmpty() {
12567 return index === -1;

Callers 3

ReactFiberHostContextFunction · 0.70
ReactFiberLegacyContextFunction · 0.70
ReactFiberNewContextFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected