Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vue 3.0 composition #492

Open
juancri opened this issue Aug 13, 2021 · 3 comments
Open

Vue 3.0 composition #492

juancri opened this issue Aug 13, 2021 · 3 comments

Comments

@juancri
Copy link

juancri commented Aug 13, 2021

Hi!

I think the Vue 3.0 composition example is not clear. What happens when I want to use reCAPTCHA in a specific component. Should I call use(...) at the app level (ie main.ts)?

I tried this and got undefined when calling useReCaptcha().

I'm using a workaround, but I think this can be improved.

Thanks!

@trangology
Copy link

Hey @juancri, I got the same issue as you did and don't seem able to resolve it.

Can you post your workaround here so that I can give it another shot? Thanks in advance!

@trangology
Copy link

Ah just got it working after trying to do so: https://stackoverflow.com/a/65470872

And yeah, you'd need to call use(...) in your main.ts file (as the OP's code snippet in their main.js file) 🙂

@mssayari
Copy link

mssayari commented Jun 2, 2022

Hi @juancri
Have you found any solution for this problem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants