MCPcopy
hub / github.com/midrender/revideo / createComputed

Function createComputed

packages/core/src/signals/createComputed.ts:4–9  ·  view source on GitHub ↗
(
  factory: (...args: any[]) => TValue,
  owner?: any,
)

Source from the content-addressed store, hash-verified

2import {ComputedContext} from './ComputedContext';
3
4export function createComputed<TValue>(
5 factory: (...args: any[]) => TValue,
6 owner?: any,
7): Computed<TValue> {
8 return new ComputedContext<TValue>(factory, owner).toSignal();
9}

Callers 3

computedFunction · 0.90
createComputedAsyncFunction · 0.90

Calls 1

toSignalMethod · 0.45

Tested by

no test coverage detected