Replies: 1 comment 2 replies
-
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Some functions return an array like this:
vueuse/packages/shared/useToggle/index.ts
Line 6 in a49a3ed
This was originally so you could destructure similar to react codebases:
However, we haven't really gone this route overall in the Vue side of things. Rather we've opted for object types:
I think we should find out how many of our functions still return arrays and see how difficult it is to change to the object-style.
It'd have to wait for the next major but that should be ok.
Beta Was this translation helpful? Give feedback.
All reactions