Options
All
  • Public
  • Public/Protected
  • All
Menu

Module hooks/useInventory

Functions

Functions

Const useInventory

  • useInventory(address: string | undefined): ItemInfo[]
  • React Hook returning array of items owned by user with the given address. Whenever the given address changes or corresponding player obtains or loses an item, this hook causes rerender of calling component with his current inventory.

    Parameters

    • address: string | undefined

      Address of user whose inventory should be returned

    Returns ItemInfo[]

    Array of items owned by the given user

Generated using TypeDoc