feat(refManualReset): new function#4644
Conversation
34916dd to
77458bf
Compare
77458bf to
636541c
Compare
|
Instead of a new function... Why we don't adapt the current one so, when an |
Thank you for your suggestion! Considering that the semantics of |
I totally agree with that. I'm actually surprised that there is function for auto option, but not manual one ( |
|
When defaultValue is object, the reset function will not work. try this example . click |
|
I’d personally like They can live as separate |
I have updated it. Kindly review. |
|
I would really love this feature for reseting an ref back to its default value. |
@vueuse/components
@vueuse/core
@vueuse/electron
@vueuse/firebase
@vueuse/integrations
@vueuse/math
@vueuse/metadata
@vueuse/nuxt
@vueuse/router
@vueuse/rxjs
@vueuse/shared
commit: |
Co-authored-by: IlyaL <[email protected]>
|
Hi @antfu 👋 I'm just following up on this PR which was recently approved. Whenever you have a moment, could you please take a look and consider merging it? I'm really excited to contribute to VueUse and believe the function will be a handy |
|
OK, I am good to have this new function if people found it useful |
820b2dd to
2321055
Compare
9romise
left a comment
There was a problem hiding this comment.
How about including some test cases as well?
|
A deep ref option would have been nice, as it’s especially useful for forms or lists. |

Close: #4564