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

Function get

tests/useHash.test.ts:8–10  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6const mockLocation = {};
7Object.defineProperty(mockLocation, 'hash', {
8 get() {
9 return mockHash;
10 },
11 set(newHash) {
12 mockHash = newHash;
13 window.dispatchEvent(new HashChangeEvent('hashchange'));

Callers 9

useCounterFunction · 0.85
setFunction · 0.85
useCounter.test.tsFile · 0.85
useGetSet.test.tsFile · 0.85
onClickFunction · 0.85
DemoFunction · 0.85
onClickFunction · 0.85
DemoFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected