v.union() prevents spreading array into function call
What i'm trying to do is make this more validator more dynamic, by using my const of categories and generating a validator from the const:
My dynamic approach to generating the validator
What i CANT do is this:
More context...
Motivation for doing this, is that now i can just pass ´categories´ to my create video form, and render the categories in a select field, while also using the same categories const to generate my validator which i use in the createVideo mutation.
