-
Notifications
You must be signed in to change notification settings - Fork 73
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
Issue with React 16.3 #81
Comments
Hello, I can confirm the issue, I'm having the same kind of error, which seems to occur after redux store updates change the way a component should render. With react and react-dom: 16.6.3 and react-portal-tooltip: 2.4.1 the issue exists. Kind regards. |
Error stack points to the line added in this commit |
Hello, do you think that introducing an existence check before to any attempt to remove that element would be enough? |
Hello, I am having the same problem and I made a rollback to previous version to fix it |
Hi, I've pushed and published a new version (v2.4.2) that should fix all issues with react 16.6.3. Please let me know if you have more issues. Thanks |
I had the occasion to try it, but unfortunately the issue is not completely fixed, at least not in all the use cases, although it is improved. Using react-portal-tooltip v2.4.3 causes tooltips not to be rendered when using a css-in-js library like fela. Tooltips are NOT rendered, and it's like they are missing their context. The error reported is: Everything is still working perfectly with react-portal-tooltip 2.3.0. Obviously, said styling library is not part of this package, but I thought it useful to report it. This looks very similar to the original error which occurred when redux-connected component were updated. As in that case, it looks like the original components are 'vanishing' from their provider context, and thus the styling service breaks down. |
I don't know fela and I've only tested the tooltip with no other modules than react itself, I'll try to see if I can find something. |
@mean2me, it worked fine for our use case, thanks @romainberger |
A small update that I think should allow you to close safely this issue: I've found out how to make react-portal-tooltip work correctly with fela (and vice versa), and I'll leave it written here for anybody having same or similar issues in the future (I guess that many other css-in-js libraries will go the same route). Fela leverages the new React Context API to give to share the context of its FelaRenderer to all its descendant nodes. However, it is possible to do so manually, either by defining the tooltip content in the tooltip parent itself, or, much better and much more idiomatically, by using fela's component to wrap the tooltip component, for instance like this:
That's it for this issue, can be closed again as far as I can say. |
Hi, thank you for the great plugin. I am getting the following error sometime
react: 16.6.3
react-dom: 16.6.3
react-portal-tooltip: 2.4.1
The text was updated successfully, but these errors were encountered: