Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/valtio/src/vanilla/utils/proxyWithComputed.ts>proxyWithComputed_DEPRECATED

💊 Valtio makes proxy-state simple for React and Vanilla
Go to Latest
function proxyWithComputed_DEPRECATED
Deprecated
Deprecated

Please follow "Computed Properties" guide in docs.

import { proxyWithComputed_DEPRECATED } from "https://deno.land/x/valtio@v1.13.2/src/vanilla/utils/proxyWithComputed.ts";

proxyWithComputed (DEPRECATED)

Type Parameters

T extends object
U extends object

Parameters

initialObject: T
computedFns: [K in keyof U]: ((snap: Snapshot<T>) => U[K]) | { get: (snap: Snapshot<T>) => U[K]; set?: (state: T, newValue: U[K]) => void; }