react-streetview
react-streetview copied to clipboard
WARNING: Too many active WebGL contexts. Oldest context will be lost.
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 I know this was forever ago, but did you ever solve this? Having the same problem
No I did not. It is still there.