UNPKG

@ui-schema/react

Version:

Schema-driven UI generator for React using JSON Schema. Build powerful form and interface generators with headless components and hooks.

9 lines (8 loc) 356 B
/** * Memoize the factory output depending on changes of the dependencyObject. * * Does not compare order of properties in the root level of the dependencyObject. * * Uses immutable compatible equality check on each property. */ export declare const useMemoWithObject: <R = unknown>(factory: () => R, dependencyObject: Record<string, unknown>) => R;