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
update
function, 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
on
can be chained.
Table of contents
📄️ Auto Manage States
use hook
📄️ Watching Request
use hook
📄️ Fetch Data
use hook
📄️ Pagination request strategy
use hook
📄️ Form submiting 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 send request
use hook
📄️ Breakpoint upload
coming soon...
📄️ Universal upload strategy
coming soon...