impair
Version:
impair is a React framework bringing several programming concepts together in order to provide a foundation for a layered, scalable, performant and enterprise level react application.
6 lines (5 loc) • 366 B
TypeScript
/**
* A hook that creates a shallow reactive object from source object and updates it when object properties changes.
* @returns A referentially stable shallow reactive object that reflects the current state of the props.
*/
export declare function useReactiveObject<P extends object>(obj?: P): Readonly<import("@vue/reactivity").ShallowReactive<P>> | undefined;