-
-
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] 一些语法糖 #166
Comments
Good suggestion |
John60676
added a commit
that referenced
this issue
Jun 1, 2023
John60676
added a commit
that referenced
this issue
Jun 1, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
需求描述 Feature Description
1.
Options.ready
检测truthy在依赖请求中比较有用。目前
ready
只接受Ref<Boolean>
,所以不能直接传Ref<Data>
,需要写computed
。希望可以接受Ref<unknown>
并检测truthy。2.
State.finished
(或者叫loaded
、ready
之类的也行)这个其实是对标
useAxios
的isFinished
,因为如果给了initialData
的话,没有办法从State
判断当前是不是已经加载完成了,还是得监听onSuccess
、onAfter
之类的事件。每次都要写一段样板代码也不是很方便,还是希望能加上。3.
refreshDeps
接受单个WatchSource
单纯的语法糖,和
vue
的watch
一样,用isArray
判断一下就好了。建议的解决方案 Proposed Solution
其他信息 Other information
The text was updated successfully, but these errors were encountered: