You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Modules/@babylonjs/react-native/ReactNativeEngine.ts
+3-6Lines changed: 3 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,7 @@ import { NativeEngine } from '@babylonjs/core';
6
6
declareconstBabylonNative: {
7
7
readonlyinitializationPromise: Promise<void>;
8
8
reset: ()=>void;
9
+
resetInitializationPromise: ()=>void;
9
10
};
10
11
11
12
exportclassReactNativeEngineextendsNativeEngine{
@@ -35,12 +36,8 @@ export class ReactNativeEngine extends NativeEngine {
35
36
if(!this.isDisposed){
36
37
super.dispose();
37
38
38
-
// Ideally we would always do a reset here as we don't want different behavior between debug and release. Unfortunately, fast refresh has some strange behavior that
39
-
// makes it quite difficult to get this to work correctly (e.g. it re-runs previous useEffect instances, which means it can try to use Babylon Native in a de-initialized state).
0 commit comments