diff --git a/packages/react-godot-renderer/src/Reconciler.ts b/packages/react-godot-renderer/src/Reconciler.ts index f4c067b..6f5284c 100644 --- a/packages/react-godot-renderer/src/Reconciler.ts +++ b/packages/react-godot-renderer/src/Reconciler.ts @@ -1,5 +1,5 @@ import { ClassDB, Node, type NodePathMap } from "godot" -import ReactReconciler from "react-reconciler" +import ReactReconciler, { type HostConfig } from "react-reconciler" import { camelToSnake, hasProperty, snakeToPascal } from "./utils.js" @@ -139,60 +139,77 @@ export const make = () => { cancelTimeout: clearTimeout, noTimeout: -1, - isPrimaryRenderer: true, - supportsPersistence: false, + // isPrimaryRenderer: true, + // supportsPersistence: false, - preparePortalMount(_containerInfo) { - throw new Error("Function not implemented.") - }, - getInstanceFromNode(_node) { - throw new Error("Function not implemented.") - }, - beforeActiveInstanceBlur() { - throw new Error("Function not implemented.") - }, - afterActiveInstanceBlur() { - throw new Error("Function not implemented.") - }, - prepareScopeUpdate(_scopeInstance, _instance) { - throw new Error("Function not implemented.") - }, - getInstanceFromScope(_scopeInstance) { - throw new Error("Function not implemented.") - }, - detachDeletedInstance(_node) { - throw new Error("Function not implemented.") - }, + // preparePortalMount(_containerInfo) { + // throw new Error("Function not implemented.") + // }, + // getInstanceFromNode(_node) { + // throw new Error("Function not implemented.") + // }, + // beforeActiveInstanceBlur() { + // throw new Error("Function not implemented.") + // }, + // afterActiveInstanceBlur() { + // throw new Error("Function not implemented.") + // }, + // prepareScopeUpdate(_scopeInstance, _instance) { + // throw new Error("Function not implemented.") + // }, + // getInstanceFromScope(_scopeInstance) { + // throw new Error("Function not implemented.") + // }, + // detachDeletedInstance(_node) { + // throw new Error("Function not implemented.") + // }, - supportsHydration: false, - NotPendingTransition: undefined, - HostTransitionContext: undefined as any, + // supportsHydration: false, + // NotPendingTransition: undefined, + // HostTransitionContext: undefined as any, - resetFormInstance(_form) { - throw new Error("Function not implemented.") - }, - requestPostPaintCallback(_callback: (time: number) => void) { - throw new Error("Function not implemented.") - }, - shouldAttemptEagerTransition: (): boolean => { - throw new Error("Function not implemented.") - }, - maySuspendCommit(_type, _props) { - throw new Error("Function not implemented.") - }, - preloadInstance(_type, _props) { - throw new Error("Function not implemented.") - }, - startSuspendingCommit() { - throw new Error("Function not implemented.") - }, - suspendInstance(_type, _props) { - throw new Error("Function not implemented.") - }, - waitForCommitToBeReady() { - throw new Error("Function not implemented.") - }, - }) + // resetFormInstance(_form) { + // throw new Error("Function not implemented.") + // }, + // requestPostPaintCallback(_callback: (time: number) => void) { + // throw new Error("Function not implemented.") + // }, + // shouldAttemptEagerTransition: (): boolean => { + // throw new Error("Function not implemented.") + // }, + // maySuspendCommit(_type, _props) { + // throw new Error("Function not implemented.") + // }, + // preloadInstance(_type, _props) { + // throw new Error("Function not implemented.") + // }, + // startSuspendingCommit() { + // throw new Error("Function not implemented.") + // }, + // suspendInstance(_type, _props) { + // throw new Error("Function not implemented.") + // }, + // waitForCommitToBeReady() { + // throw new Error("Function not implemented.") + // }, + } as Partial< + HostConfig< + string, + Record, + Node, + Node, + Node, + Node, + Node, + Node, + Node, + unknown, + unknown, + unknown, + unknown, + unknown + > + > as any) } const applyNextProps = (instance: Node, nextProps: Record) => {