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

Function createCursor

code/redux/public/app.js:12817–12821  ·  view source on GitHub ↗
(defaultValue)

Source from the content-addressed store, hash-verified

12815 var index = -1;
12816
12817 function createCursor(defaultValue) {
12818 return {
12819 current: defaultValue
12820 };
12821 }
12822
12823 function isEmpty() {
12824 return index === -1;

Callers 3

ReactFiberHostContextFunction · 0.70
ReactFiberLegacyContextFunction · 0.70
ReactFiberNewContextFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected