NuxtN
Nuxt10mo ago
4 replies
BinaryArtifex

v-bind not resolving computed object?

i have the following composable, fieldArgs is not reactive, however each of each properties are computed values.

const fieldArgs = useFormField(props);


im trying to consume it in my template via

v-bind="fieldArgs.fieldProps"


however the output injects the stringified, non resolved computed value with all its internals, meta properties, etc. I have to either wrap using unref or destructure useFormField and pass fieldProps that way. I don't understand, if the destructured property that is itself a composable works, why doesn't fieldArgs.fieldProps which is just the scenic route to the same property, not work?
Was this page helpful?