mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-21 15:53:45 +02:00
Remove lodash deps to reduce bundle size more
This commit is contained in:
@@ -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 }>();
|
||||
|
||||
Reference in New Issue
Block a user