Skip to main content

hooks

@arolariu/website


@arolariu/website / hooks

hooks

Fileoverview

Custom React hooks for the arolariu.ro application.

Remarks

This module exports all custom hooks used throughout the application:

Data Fetching Hooks:

  • useInvoice - Fetches a single invoice by identifier
  • useInvoices - Fetches all invoices for the current user
  • useMerchant - Fetches a single merchant by identifier
  • useMerchants - Fetches all merchants for the current user
  • useUserInformation - Fetches current user information with JWT

Utility Hooks:

Important Notes:

  • All data fetching hooks are client-side only (require "use client" directive)
  • Hooks manage loading and error states internally
  • Invoice and merchant hooks integrate with Zustand stores for caching

References

usePaginationWithSearch

Re-exports usePaginationWithSearch


useUserInformation

Re-exports useUserInformation

// was this page useful?