diff --git a/packages/library/package.json b/packages/library/package.json index 113ec13..114fd80 100644 --- a/packages/library/package.json +++ b/packages/library/package.json @@ -13,7 +13,7 @@ "build:local": "webpack --env isLogging=true && bash ../../scripts/copy.sh", "build": "webpack --env environment=PROD", "test": "NODE_OPTIONS=--experimental-vm-modules jest", - "test:debug": "NODE_OPTIONS=--experimental-vm-modules node --inspect-brk ../../node_modules/.bin/jest", + "test:debug": "NODE_OPTIONS=--experimental-vm-modules node --inspect-brk ../../node_modules/.bin/jest --runInBand", "release": "npm run build && commit-and-tag-version --commit-all && git push --follow-tags && bash ../../scripts/publish.sh" }, "keywords": [], diff --git a/packages/library/src/core/Scene.tsx b/packages/library/src/core/Scene.tsx index 5d00ee9..760e013 100644 --- a/packages/library/src/core/Scene.tsx +++ b/packages/library/src/core/Scene.tsx @@ -171,9 +171,9 @@ export const Scene: React.FC = ({ children, sceneOptions, onSceneRea , rootContainer.current!, ); - } else { - isFirstRender.current = false; } + } else { + isFirstRender.current = false; } });