How Do I Access AuthForm Internal State?
I need to access the AuthForm internal state so I can pass an email address for a Forget Password feature. Documentation is not clear on how to do this. How do we access the state?
5 Replies
I think this is a NuxtUI question specifically, right?
It's not something I've used, but I wanted to clarify
Correct, it's a Nuxt UI Pro specific issue. As the AuthForm is a component only available under that tier.
GitHub
How Do I Access AuthForm Internal State? · Issue #1916 · nuxt/ui
Description I need to access the AuthForm internal state so I can pass an email address for a Forget Password feature. Documentation is not clear on how to do this. How do we access the state?
You should be able to access the internal state via an ref
Found in the ui-pro repo: https://github.com/nuxt/ui-pro/blob/16019a71156144d1351aad52ee3fdca41a21bc2a/components/auth/AuthForm.vue#L202
Thanks soo much!!! I'm on mobile now but i'll check it out soon and report back how it goes.
So
authForm.value.state
doesn't work but if you pass authForm.state
it does work!! Thanks again 😃 🙏