MCPcopy
hub / github.com/alibaba/hooks / reset

Function reset

packages/hooks/src/useCounter/index.ts:63–65  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

61 };
62
63 const reset = () => {
64 setValue(initialValue);
65 };
66
67 return [
68 current,

Callers 1

index.spec.tsFile · 0.50

Calls 1

setValueFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…