I can't get the not validator to work when used with a computed sameAs value.
I'm using the term "computed" here, but I'm not 100% sure if it's the most accurate one to use. I hope in combination with the reproducible code it is clear what I mean. If there is a better term, please let me know.
🚫 this doesn't work
not(sameAs(value))
✅ sameAs works when used without not with a computed value
sameAs(value)
✅ not works when used with a static value
not(sameAs("staticvalue"))
App.vue
Full repo for reproduction: https://github.com/tobealive/vue3-vuelidate
Link to not in vuelidate docs: https://vuelidate-next.netlify.app/validators.html#not
I opened an issue on this a few days ago in the vuelidate repo.
But since I'm still thinking of the most common case where I - as a user - miss something, and also the maintainers seem to be pretty busy, I thought it's legitimate to also put it in here.
If it is resolved, I would close it to relieve the maintainers and hopefully others who encounter this problem will have a solution on stackoverflow.