api-hook-wiring

Community

Connect frontend data to APIs with React Query

Authorspuneiartur
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Connect frontend features to backend APIs using the project's Axios + React Query system. The project provides custom hooks that wrap React Query with automatic URL building, toast notifications, query invalidation, and router redirects.

Core Features & Use Cases

  • API Service: create api/{resource}.js to define HTTP calls using axiosAuth for admin endpoints and axios for public endpoints.
  • Data fetching: useQuery and useInfiniteQuery wrappers simplify data fetching and pagination, with automatic URL construction and query parameter handling.
  • Mutations and navigation: useMutation-based create/update/delete actions that invalidate lists, show toasts, and support optional redirects.

Quick Start

Create api/{resource}.js, define get/list functions, and wire them to useQuery/useMutation hooks in your components to fetch and mutate data.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: api-hook-wiring
Download link: https://github.com/spuneiartur/claude-agent-specs/archive/main.zip#api-hook-wiring

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.