Lilact
    Preparing search index...

    Function useMemo

    • Memoizes a computed value until dependencies change.

      Parameters

      • factory: Function

        Function that creates the value.

      • Optionaldeps: any[] = undefined

        Optional dependency list (or an object for shallow comparison) used to determine when to recompute the value.

      Returns any

      Memoized value.