1
1
mirror of https://github.com/pterodactyl/panel.git synced 2024-11-23 01:22:30 +01:00
Pterodactyl-Panel/resources/scripts/plugins/useDeepCompareMemo.ts

6 lines
253 B
TypeScript

import { DependencyList, useMemo } from 'react';
import { useDeepMemoize } from '@/plugins/useDeepMemoize';
export const useDeepCompareMemo = <T> (callback: () => T, dependencies: DependencyList) =>
useMemo(callback, useDeepMemoize(dependencies));