/**
 * @license MIT
 * author: Cube Dev Team
 * @cube-dev/ui-kit v0.0.0-canary-dc621f3
 * Released under the MIT license.
 */

import { useEffect } from 'react';
import { useIsFirstRender } from './use-is-first-render';
export function useUpdateEffect(effect, deps) {
    const isFirst = useIsFirstRender();
    useEffect(() => {
        if (!isFirst) {
            return effect();
        }
    }, deps);
}

        