mirror of
https://github.com/pterodactyl/panel.git
synced 2024-11-23 09:32:29 +01:00
6 lines
270 B
TypeScript
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));
|