Home > @jview/hooks > AsyncLoadingResponse
AsyncLoadingResponse interface
useAsyncLoading 的返回类型
Signature:
typescript
export interface AsyncLoadingResponse
Properties
Property | Modifiers | Type | Description |
---|---|---|---|
Ref<unknown> | 错误信息 | ||
Ref<boolean> | 是否是 error 状态,如果是,代表 fn 调用走向了 reject 分支,或者遇到了一些异常 | ||
Ref<boolean> | 是否是 loading 状态,如果是,代表 fn 正在调用中 | ||
触发器,调用 trigger 会触发函数 fn 的调用 |