mirror of
https://github.com/pterodactyl/panel.git
synced 2024-11-26 02:52:30 +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));
|