Client Strategy
Like using a component library, just learn it when you need a request strategy!
All client use hooks have the following in common:
-
They all rely on statesHook, please set statesHook before using.
-
Their return values all contain the
updatefunction, which is used to actively update the exported state value. -
For performance under react, all operation functions such as
send,update,abort, etc. are wrapped withuseCallback. -
All binding functions starting with
oncan be chained.
Table of contents
Auto Manage States
use hook
Watching Request
use hook
Fetch Data
use hook
Pagination request strategy
use hook
Form submitting strategy
use hook
Token authentication interceptor
Interceptor
Automatically refetch data
use hook
Cross components request trigger
middleware
Seamless data interaction
8 items
send captcha
use hook
useRequest with serial
use hook
useWatcher with serial
use hook
retriable request
use hook
Server-Sent Events Request
useSSE
Unified upload strategy
useUploader
Is using alova in your project? please tell me!