useToggle: add more methods #585
Comments
This would be a breaking change though, right? Not sure if the tradeoffs are worth it |
Yes, it would be a breaking change. I can make a pr that you can label by something like "6.0 release" and merge it when you decide to release the next major version. |
I would prefer |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The proposition
How about adding more methods to the
useToggle
and make ref readonly? LikeWhy
const [toggler] = useToggle(); toggler.value = 'string value'
useCouter
hasset
method instead ofconst counter = useCounter(); counter.counter.value = 10
showModal.enable()
is nicer, terser, and more explicit thanshowModal.value = true
I can author the PR if needed.
The text was updated successfully, but these errors were encountered: