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

How to use when there are multiple components? #76

Open
audetpascale opened this issue Jun 21, 2016 · 1 comment
Open

How to use when there are multiple components? #76

audetpascale opened this issue Jun 21, 2016 · 1 comment

Comments

@audetpascale
Copy link

Hi,

Context: we are using React and Kendo (do not blame me lol). Currently, we have the main application, everything is fine with the plugin. However, when I render a new component in the Kendo stuff, well, the plugin is "unavailable" (or seems to).

In other words, I can have two and more ReactDOM.render(...) in a page, the main app and the one created inside Kendo lib. Is it my issue? If yes, do you have suggestion?

Thanks for your response and plugin!
Pascale Audet

@alexiusp
Copy link

alexiusp commented Jun 9, 2017

Yes, I have this issue too. I'm trying to do like this in every component:

try {
  // wrapping it in try-catch to prevent errors on duplicate injection
  injectTapEventPlugin();  
} catch (error) {  
}

But I'm not sure if it works correctly - I have just started.
I would also recommend to replace an error throw on calling the injectTapEventPlugin() with a warning.

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