Skip to main content
Version: v3

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:

  1. They all rely on statesHook, please set statesHook before using.

  2. Their return values ​​all contain the update function, which is used to actively update the exported state value.

  3. For performance under react, all operation functions such as send, update, abort, etc. are wrapped with useCallback.

  4. All binding functions starting with on can be chained.

Table of contents