Skip to content

Commit

Permalink
fix: useBeforeRender re-registering every render (#197)
Browse files Browse the repository at this point in the history
thanks - good catch.  🤦‍♂️
  • Loading branch information
benallfree authored Jan 18, 2022
1 parent 9d38fff commit ccf4bb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react-babylonjs/src/hooks/render.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export const useBeforeRender = (
scene.onBeforeRenderObservable.remove(sceneObserver)
}
}
})
}, [])
}

/**
Expand Down

0 comments on commit ccf4bb4

Please sign in to comment.