UNPKG

native-base

Version:

Essential cross-platform UI components for React Native

8 lines (7 loc) 268 B
import { useMemo } from 'react'; //@ts-ignore import hash from 'stable-hash'; export function useStableMemo(factory, deps) { // eslint-disable-next-line react-hooks/exhaustive-deps return useMemo(factory, [hash(deps)]); } //# sourceMappingURL=useStableMemo.js.map