(key: string)
| 13 | } |
| 14 | |
| 15 | function 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 | |
| 23 | function useDynamicRefs() { |
| 24 | return [getRef, setRef]; |
no outgoing calls
no test coverage detected