react-streetview icon indicating copy to clipboard operation
react-streetview copied to clipboard

WARNING: Too many active WebGL contexts. Oldest context will be lost.

Open s-stepien opened this issue 8 years ago • 2 comments

Hi

I can see after some time that I'm getting: WARNING: Too many active WebGL contexts. Oldest context will be lost. in console. I'm using this component in Bootstrap modal so this message will show up really quickly.

Will:

diff --git a/src/ReactStreetview.js b/src/ReactStreetview.js
index 5ae84fb..221a43a 100644
--- a/src/ReactStreetview.js
+++ b/src/ReactStreetview.js
@@ -43,6 +43,7 @@ class ReactStreetview extends React.Component {
                if (this.streetView) {
                        this.props.googleMaps.event.clearInstanceListeners(this.streetView);
                }
+               this.streetView = null;
        }
 
        render () {

fix the problem? I'm not able to test it because I have some issue during lib rebuild. Or maybe there is a way to use this component in "singleton" style in other components?

s-stepien avatar Jul 31 '17 17:07 s-stepien

@s-stepien I know this was forever ago, but did you ever solve this? Having the same problem

jplew avatar Nov 14 '18 23:11 jplew

No I did not. It is still there.

s-stepien avatar Nov 15 '18 07:11 s-stepien