We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1601d2e commit c45c1bdCopy full SHA for c45c1bd
cpp/JSIUtils/MGLTypedArray.cpp
@@ -50,7 +50,13 @@ class PropNameIDCache {
50
const jsi::PropNameID &getConstructorNameProp(jsi::Runtime &runtime,
51
MGLTypedArrayKind kind);
52
53
- void invalidate() { props.erase(props.begin(), props.end()); }
+ void invalidate() {
54
+ /** This call (and attempts to use props.clear()) crash 💥 when the
55
+ * JSI runtime has already been destroyed. So we are commenting it out
56
+ * and waiting for Nitro and 1.0 to fix this the proper way.
57
+ */
58
+ //props.erase(props.begin(), props.end());
59
+ }
60
61
private:
62
std::unordered_map<Prop, std::unique_ptr<jsi::PropNameID>> props;
0 commit comments