pikax / vue-composable

Vue composition-api composable components. i18n, validation, pagination, fetch, etc. +50 different composables
https://pikax.me/vue-composable/
MIT License
1.17k stars 67 forks source link

I'm confused on nested validations #1020

Open wishinghand opened 2 years ago

wishinghand commented 2 years ago

If I have a component like so:

<template>
    <FormA />
    <FormB />

   <p v-for="error of form.$errors">
      {{ error.$message }}
   </p>

</template>

<script setup>
const form = useValidation();
</script>

I'm unsure of how to bubble up the errors to be collected in the top level useValidation instance