Function useEntity

Creates a hook that manages an entity state.

  • Type Parameters

    • T extends IEntity = any

      The type of the entity.

    Parameters

    • params: IParams<T>

      The parameters to configure the hook.

    Returns EntityAdapter<T>

    • The entity adapter object.