z-paging-integration
CommunityReliable z-paging and useRequest pagination
Authorruan-cat
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Provides a concrete, safe integration pattern for combining the z-paging pagination component with Alova useRequest callbacks so pages load correctly, avoid infinite loops, and surface consistent loading/error states.
Core Features & Use Cases
- Enforces the api-migration conventions: useRequest with immediate:false and callback-based onSuccess/onError handling.
- Prevents common pitfalls such as try/catch inside @query, calling reload/refresh inside @query, and duplicate global prop configuration.
- Standardizes UX expectations by requiring a loading slot using z-paging-loading and by calling complete() or complete(false) to notify z-paging of request results.
- Typical use cases: repair order lists, housing/selector lists, activity lists, ticketing/complaint lists with server-side pagination and filters.
Quick Start
Integrate z-paging by wiring @query to useRequest.send with immediate:false, call complete() in onSuccess and complete(false) in onError, and trigger initial pagingRef.reload() from onMounted (never call reload/refresh from inside @query).
Dependency Matrix
Required Modules
None requiredComponents
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: z-paging-integration Download link: https://github.com/ruan-cat/11comm-app/archive/main.zip#z-paging-integration Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.