-
Notifications
You must be signed in to change notification settings - Fork 20
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
Detected multiple renderers rendering the same context provider #6
Comments
Currently, react-reconciler framework is meant to support only 1 context per renderer otherwise you may have unexpected behavior when you need access to the PaperScope. Fortunately the paper renderer holds a reference to this without the context, so it should render fine. Possibly the best way to handle this is to have the option to create your own context or have a no-context mode. If you need access to the context you can have each renderer in a seperate |
Thanks so much for the swift response! I have one |
At the moment, it seems you would need load |
Ok, thanks for the info! Everything is working wonderfully, so I'll leave it like that. |
I have a related issue - happy to create a new issue if you think it's not related. I get the same warning:
But there's a different context. Basically I am mounting the react component on the page, un mounting it, then remounting it. Then I get the above message. I also have got the following messages ( in case they are helpful):
If I were to guess I would say there is some kind of cleanup not taking place on unmount of the component or some global state somewhere... |
When I use multiple
PaperContainer
s (in multiple components), I get this warning:Other than that everything works as expected, but this warning is logged a ton.
Any ideas?
Thank you so much!
The text was updated successfully, but these errors were encountered: