MCPcopy Create free account
hub / github.com/api-platform/website / getRef

Function getRef

pwa/hooks/con/useDynamicRefs.tsx:15–21  ·  view source on GitHub ↗
(key: string)

Source from the content-addressed store, hash-verified

13}
14
15function getRef(key: string) {
16 if (!key) {
17 console.warn(`useDynamicRefs: Cannot get ref without key`);
18 return null;
19 }
20 return map.get(key);
21}
22
23function useDynamicRefs() {
24 return [getRef, setRef];

Callers 2

ConLinkFunction · 0.85
ReviewCoverFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected