MCPcopy Create free account
hub / github.com/WebReflection/neverland / useCallback

Function useCallback

test/neverland.js:517–521  ·  view source on GitHub ↗
(fn, guards)

Source from the content-addressed store, hash-verified

515 return stack[i].current;
516 };
517 var useCallback = function useCallback(fn, guards) {
518 return useMemo(function () {
519 return fn;
520 }, guards);
521 };
522
523 /*! (c) Andrea Giammarchi - ISC */
524 var useReducer = function useReducer(reducer, value, init, options) {

Callers

nothing calls this directly

Calls 1

useMemoFunction · 0.70

Tested by

no test coverage detected