Returning a ref in the useVModel is somewhat unexpected as it isn't interacting with the props but would still work as expected. This might cause confusion as to why values are not being emitted or worse yet despite the getCurrentInstance() console warning, making it into production.
I think an error should be thrown causing the script to terminate.
This could be considered a breaking change.
Returning a
ref
in theuseVModel
is somewhat unexpected as it isn't interacting with the props but would still work as expected. This might cause confusion as to why values are not being emitted or worse yet despite thegetCurrentInstance()
console warning, making it into production.I think an error should be thrown causing the script to terminate. This could be considered a breaking change.