This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// V3DViewContainer.swift | |
// Vision3DUIKit | |
// | |
// Created by Steven Troughton-Smith on 02/02/2024. | |
// | |
import UIKit | |
import SwiftUI |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as React from 'react'; | |
import { padStart, eq, isEqual } from 'lodash'; | |
export function useDebugDeps(name: string, deps: unknown[]): void { | |
const previousDepsRef = React.useRef(deps); | |
const countRef = React.useRef(0); | |
printDepsChange(name, deps, previousDepsRef.current, countRef.current); | |
previousDepsRef.current = deps; |