Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion cpp/JSIUtils/MGLTypedArray.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,13 @@ class PropNameIDCache {
const jsi::PropNameID &getConstructorNameProp(jsi::Runtime &runtime,
MGLTypedArrayKind kind);

void invalidate() { props.erase(props.begin(), props.end()); }
void invalidate() {
/** This call (and attempts to use props.clear()) crash 💥 when the
* JSI runtime has already been destroyed. So we are commenting it out
* and waiting for Nitro and 1.0 to fix this the proper way.
*/
//props.erase(props.begin(), props.end());
}

private:
std::unordered_map<Prop, std::unique_ptr<jsi::PropNameID>> props;
Expand Down
Loading