mirror of
https://github.com/pterodactyl/panel.git
synced 2024-11-25 18:42:31 +01:00
6 lines
252 B
TypeScript
6 lines
252 B
TypeScript
import { DependencyList, useMemo } from 'react';
|
|
import { useDeepMemoize } from '@/plugins/useDeepMemoize';
|
|
|
|
export const useDeepCompareMemo = <T>(callback: () => T, dependencies: DependencyList) =>
|
|
useMemo(callback, useDeepMemoize(dependencies));
|