@embra/reactivity - v0.0.3
    Preparing search index...

    Variable useCombineConst

    useCombine: UseCombine = ...

    Combines an array of ReadableLikes into a single Readable with transformed value.

    Note that changes to transform and config will not trigger re-derivation, and useCombine always uses the latest transform and config in the derivation. In other words, no extra care is needed to use this in React components. All args will be updated properly.

    import { useCombine, useValue } from "@embra/reactivity/react";

    function App({ width$, height$ }) {
    const size$ = useCombine(
    [width$, height$],
    ([width, height]) => ({ width, height }),
    { equal: (s1, 22) => s1.width === s2.width && s1.height === s2.height }
    );
    const size = useValue(size$);
    }