Skip to content

Commit 867900d

Browse files
committed
cleanup
1 parent af19ca4 commit 867900d

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

packages/fiber/src/core/renderer.ts

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -581,17 +581,11 @@ function createRenderer<TCanvas>(roots: Map<TCanvas, Root>) {
581581
return parentHostContext
582582
},
583583
createTextInstance() {},
584-
finalizeInitialChildren(instance: Instance) {
585-
// https://github.com/facebook/react/issues/20271
586-
// Returning true will trigger commitMount
587-
//return !!instance.__r3f.handlers
584+
finalizeInitialChildren() {
588585
return false
589586
},
590-
commitMount(instance: Instance) {
591-
// https://github.com/facebook/react/issues/20271
592-
// This will make sure events are only added once to the central container
593-
//if (instance.raycast && instance.__r3f.handlers)
594-
// instance.__r3f.root.getState().internal.interaction.push(instance as unknown as THREE.Object3D)
587+
commitMount() {
588+
// noop
595589
},
596590
shouldDeprioritizeSubtree() {
597591
return false

0 commit comments

Comments
 (0)