( unstableObject: Type )
| 1 | import { useMemo } from "react"; |
| 2 | |
| 3 | export function useMemoizedObject<Type extends object>( |
| 4 | unstableObject: Type |
| 5 | ): Type { |
| 6 | return useMemo(() => { |
| 7 | return unstableObject; |
| 8 | // eslint-disable-next-line react-hooks/exhaustive-deps |
| 9 | }, Object.values(unstableObject)); |
| 10 | } |
no outgoing calls
no test coverage detected
searching dependent graphs…