Remove lodash deps to reduce bundle size more
This commit is contained in:
parent
0403fa9517
commit
cbea4078fb
8 changed files with 36 additions and 29 deletions
|
@ -1,5 +1,5 @@
|
|||
import { useRef } from 'react';
|
||||
import isEqual from 'lodash-es/isEqual';
|
||||
import isEqual from 'react-fast-compare';
|
||||
|
||||
export const useDeepMemo = <T, K> (fn: () => T, key: K): T => {
|
||||
const ref = useRef<{ key: K, value: T }>();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue