Browse Source

chore: test if onReady is the culprit

alvarosabu 3 months ago
parent
commit
20b51caf45
1 changed files with 1 additions and 4 deletions
  1. 1 4
      src/composables/useTresContextProvider/index.ts

+ 1 - 4
src/composables/useTresContextProvider/index.ts

@@ -79,11 +79,8 @@ export function useTresContextProvider({
   ctx.loop.setReady(false)
   ctx.loop.start()
 
-  whenever(renderer.isReady, () => { // TODO #994 This does not belong here, see https://github.com/Tresjs/tres/issues/595
+  renderer.onReady(() => {
     ctx.loop.setReady(true)
-  }, {
-    once: true,
-    immediate: true,
   })
 
   onUnmounted(() => {