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).