import { useEffect } from 'react'; /** * A hook to call the effect only when the dependencies are updated (not when mounted). * This hook will work in both React non-StrictMode and StrictMode. * * This hook is inspired by this answer on React issue, * where use two useEffect to make sure if it is running on StrictMode or not. * https://github.com/facebook/react/issues/24527 * * @param effect - same as useEffect effect * * @param deps - same as useEffect deps */ export declare const useUpdateEffect: typeof useEffect;