MCPcopy Index your code
hub / github.com/streamich/react-use / set

Function set

tests/useHash.test.ts:11–14  ·  view source on GitHub ↗
(newHash)

Source from the content-addressed store, hash-verified

9 return mockHash;
10 },
11 set(newHash) {
12 mockHash = newHash;
13 window.dispatchEvent(new HashChangeEvent('hashchange'));
14 },
15});
16Object.defineProperty(window, 'location', {
17 value: mockLocation,

Callers 5

useCounter.test.tsFile · 0.70
useGetSet.test.tsFile · 0.70
useList.test.tsFile · 0.70
useMap.test.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected