1
1
mirror of https://github.com/pterodactyl/panel.git synced 2024-11-26 02:52:30 +01:00
Pterodactyl-Panel/resources/scripts/plugins/useDeepCompareEffect.ts

6 lines
270 B
TypeScript

import { DependencyList, EffectCallback, useEffect } from 'react';
import { useDeepMemoize } from './useDeepMemoize';
export const useDeepCompareEffect = (callback: EffectCallback, dependencies: DependencyList) =>
useEffect(callback, useDeepMemoize(dependencies));