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

Function createCursor

code/new-context-api/public/app.js:11927–11931  ·  view source on GitHub ↗
(defaultValue)

Source from the content-addressed store, hash-verified

11925 var index = -1;
11926
11927 function createCursor(defaultValue) {
11928 return {
11929 current: defaultValue
11930 };
11931 }
11932
11933 function isEmpty() {
11934 return index === -1;

Callers 3

ReactFiberHostContextFunction · 0.70
ReactFiberLegacyContextFunction · 0.70
ReactFiberNewContextFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected