|
1 | 1 | import packageData from '../../package.json' |
2 | 2 | import * as THREE from 'three' |
3 | 3 | import * as React from 'react' |
4 | | -import Reconciler from '../../react-reconciler/index.js' |
5 | | -import { |
6 | | - ContinuousEventPriority, |
7 | | - DiscreteEventPriority, |
8 | | - DefaultEventPriority, |
9 | | -} from '../../react-reconciler/constants.js' |
| 4 | +import Reconciler from 'react-reconciler' |
| 5 | +import { ContinuousEventPriority, DiscreteEventPriority, DefaultEventPriority } from 'react-reconciler/constants' |
10 | 6 | import { unstable_IdlePriority as idlePriority, unstable_scheduleCallback as scheduleCallback } from 'scheduler' |
11 | 7 | import { |
12 | 8 | diffProps, |
@@ -565,6 +561,7 @@ export const reconciler = /* @__PURE__ */ createReconciler< |
565 | 561 | requestPostPaintCallback() {}, |
566 | 562 | maySuspendCommit: () => false, |
567 | 563 | preloadInstance: () => true, // true indicates already loaded |
| 564 | + startSuspendingCommit() {}, |
568 | 565 | suspendInstance() {}, |
569 | 566 | waitForCommitToBeReady: () => null, |
570 | 567 | NotPendingTransition: null, |
@@ -605,69 +602,4 @@ export const reconciler = /* @__PURE__ */ createReconciler< |
605 | 602 | // @ts-ignore DefinitelyTyped is not up to date |
606 | 603 | rendererPackageName: '@react-three/fiber', |
607 | 604 | rendererVersion: packageData.version, |
608 | | - |
609 | | - // https://github.com/facebook/react/pull/31975 |
610 | | - // https://github.com/facebook/react/pull/31999 |
611 | | - applyViewTransitionName(_instance: any, _name: any, _className: any) {}, |
612 | | - restoreViewTransitionName(_instance: any, _props: any) {}, |
613 | | - cancelViewTransitionName(_instance: any, _name: any, _props: any) {}, |
614 | | - cancelRootViewTransitionName(_rootContainer: any) {}, |
615 | | - restoreRootViewTransitionName(_rootContainer: any) {}, |
616 | | - InstanceMeasurement: null, |
617 | | - measureInstance: (_instance: any) => null, |
618 | | - wasInstanceInViewport: (_measurement: any): boolean => true, |
619 | | - hasInstanceChanged: (_oldMeasurement: any, _newMeasurement: any): boolean => false, |
620 | | - hasInstanceAffectedParent: (_oldMeasurement: any, _newMeasurement: any): boolean => false, |
621 | | - |
622 | | - // https://github.com/facebook/react/pull/32002 |
623 | | - // https://github.com/facebook/react/pull/34486 |
624 | | - suspendOnActiveViewTransition(_state: any, _container: any) {}, |
625 | | - |
626 | | - // https://github.com/facebook/react/pull/32451 |
627 | | - // https://github.com/facebook/react/pull/32760 |
628 | | - startGestureTransition: () => null, |
629 | | - startViewTransition: () => null, |
630 | | - stopViewTransition(_transition: null) {}, |
631 | | - |
632 | | - // https://github.com/facebook/react/pull/32038 |
633 | | - createViewTransitionInstance: (_name: string): null => null, |
634 | | - |
635 | | - // https://github.com/facebook/react/pull/32379 |
636 | | - // https://github.com/facebook/react/pull/32786 |
637 | | - getCurrentGestureOffset(_provider: null): number { |
638 | | - throw new Error('startGestureTransition is not yet supported in react-three-fiber.') |
639 | | - }, |
640 | | - |
641 | | - // https://github.com/facebook/react/pull/32500 |
642 | | - cloneMutableInstance(instance: any, _keepChildren: any) { |
643 | | - return instance |
644 | | - }, |
645 | | - cloneMutableTextInstance(textInstance: any) { |
646 | | - return textInstance |
647 | | - }, |
648 | | - cloneRootViewTransitionContainer(_rootContainer: any) { |
649 | | - throw new Error('Not implemented.') |
650 | | - }, |
651 | | - removeRootViewTransitionClone(_rootContainer: any, _clone: any) { |
652 | | - throw new Error('Not implemented.') |
653 | | - }, |
654 | | - |
655 | | - // https://github.com/facebook/react/pull/32465 |
656 | | - createFragmentInstance: (_fiber: any): null => null, |
657 | | - updateFragmentInstanceFiber(_fiber: any, _instance: any): void {}, |
658 | | - commitNewChildToFragmentInstance(_child: any, _fragmentInstance: any): void {}, |
659 | | - deleteChildFromFragmentInstance(_child: any, _fragmentInstance: any): void {}, |
660 | | - |
661 | | - // https://github.com/facebook/react/pull/32653 |
662 | | - measureClonedInstance: (_instance: any) => null, |
663 | | - |
664 | | - // https://github.com/facebook/react/pull/32819 |
665 | | - maySuspendCommitOnUpdate: (_type: any, _oldProps: any, _newProps: any) => false, |
666 | | - maySuspendCommitInSyncRender: (_type: any, _props: any) => false, |
667 | | - |
668 | | - // https://github.com/facebook/react/pull/34486 |
669 | | - startSuspendingCommit: () => null, |
670 | | - |
671 | | - // https://github.com/facebook/react/pull/34522 |
672 | | - getSuspendedCommitReason: (_state: any, _rootContainer: any) => null, |
673 | 605 | }) |
0 commit comments