The micro-VM for AI agents — light enough to embed on your laptop, elastic enough to power an agentic cloud.
/*
* Copyright 2025 Daytona Platforms Inc.
* Modified by BoxLite AI, 2025-2026
* SPDX-License-Identifier: AGPL-3.0
*/
import isEqual from 'fast-deep-equal'
import { useRef } from 'react'
export function useDeepCompareMemo<T>(value: T) {
const ref = useRef<T>(value)
if (!isEqual(value, ref.current)) {
ref.current = value
}
return ref.current
}