Beignet API reference
    Preparing search index...

    Type Alias Memoized<F>

    Memoized: F & { clear(): void; invalidate(...args: Parameters<F>): boolean }

    Memoized function returned by createMemo(...).

    Type Parameters

    • F extends (...args: never[]) => unknown

    Type Declaration

    • clear: function
      • Drop all of this function's entries in the current scope.

        Returns void

    • invalidate: function
      • Drop the current scope's entry for these arguments, so the next call re-executes. Call this from mutation methods that make a memoized read stale within the same request.

        Parameters

        • ...args: Parameters<F>

        Returns boolean

        Whether an entry existed.