Default implementation of HookData using a Map.

Type Parameters

  • TData = Record<string, unknown>

    A record type that defines the shape of the stored data

Implements

Constructors

Methods

Constructors

Methods

  • Deletes a value from the hook data store.

    Type Parameters

    • K extends string | number | symbol

    Parameters

    • key: K

      The key to delete

    Returns boolean

    True if the key was deleted, false if it didn't exist

  • Checks if a key exists in the hook data store.

    Type Parameters

    • K extends string | number | symbol

    Parameters

    • key: K

      The key to check

    Returns boolean

    True if the key exists, false otherwise