-
-
Notifications
You must be signed in to change notification settings - Fork 87
New issue
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
[Feature Request] Types: Remove nullish check if initialData is given in useRequest #165
Labels
Comments
I found that the data is set to |
#82 如果出错也不会重置的话,还是加上去比较好。 |
这个问题有待讨论,泛型这个方案不太好 |
如果不在乎“不传默认值时 |
这个问题有迭代的计划吗? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
需求描述 Feature Description
If
initialData
is given, the result type should not have theundefined
part.The
ref
function invue
is a good example:建议的解决方案 Proposed Solution
| undefined
part inState
Option
QueryState
interface anduseRequest
signature.Same modification is needed for
useLoadMore
,usePagination
.其他信息 Other information
The text was updated successfully, but these errors were encountered: