We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
目前useRequestResult的data的类型始终为Readonly<Ref<TData | undefined>>,当提供了initialData后,data的类型签名应该改为Readonly<Ref<TData | typeof initialData>>。
useRequestResult
data
Readonly<Ref<TData | undefined>>
initialData
Readonly<Ref<TData | typeof initialData>>
将useRequestResult['data']的签名由Readonly<Ref<TData | undefined>>,改为Readonly<Ref<TData | typeof initialData>>
useRequestResult['data']
No response
The text was updated successfully, but these errors were encountered:
是个不错的建议。会在后续版本优化对于 data 的签名。
Sorry, something went wrong.
No branches or pull requests
Description
目前
useRequestResult
的data
的类型始终为Readonly<Ref<TData | undefined>>
,当提供了initialData
后,data
的类型签名应该改为Readonly<Ref<TData | typeof initialData>>
。Suggested solution
将
useRequestResult['data']
的签名由Readonly<Ref<TData | undefined>>
,改为Readonly<Ref<TData | typeof initialData>>
Alternative
No response
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: