Description
If a hot reload is triggered while in AR mode the app crashes. If you exit AR mode first hot reload works as expected. With the below traces (probably because the JS Engine is getting torn down).
We should gracefully handle this failure and exit AR mode.
2020-06-01 10:24:25.209 907-959/com.playground A/libc: E:/BabylonReactNative/Apps/Playground/node_modules/react-native-babylon/submodules/BabylonNative/Dependencies/napi/source/js_native_api_JavaScriptCore.cc:114: JSObjectRef (anonymous namespace)::ToJSObject(napi_env, const napi_value): assertion "value == nullptr || JSValueIsObject(env->context, reinterpret_cast(value))" failed
2020-06-01 10:24:25.209 907-959/com.playground A/libc: Fatal signal 6 (SIGABRT), code -6 (SI_TKILL) in tid 959 (mqt_js), pid 907 (com.playground)