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

Call React methods from Vue #3

Closed
juanparati opened this issue Jul 19, 2023 · 3 comments
Closed

Call React methods from Vue #3

juanparati opened this issue Jul 19, 2023 · 3 comments

Comments

@juanparati
Copy link

I used vuera-ts integrating some React components into Vue and it works great passing properties and listening events however how can I call methods that uses "useRef" from Vue?

In Vue normally we call methods from a child component with something like this.$ref.childComp.mymethod().

@juanparati
Copy link
Author

@nmpribeiro : I found that is not possible to call the methods without the internal reference to the React Component, so I improved vuera-ts with a proxy method that will provide the internal reference.

See: #4

@tachyon-ops
Copy link
Owner

@juanparati thanks for contributing. I will have a look at the PR :)

@tachyon-ops
Copy link
Owner

@juanparati should be ready to use with version 1.0.7. Thanks for your contribution!

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

2 participants