11import Reconciler from 'react-reconciler' ;
2+ import { DefaultEventPriority } from 'react-reconciler/constants' ;
23import emptyObject from 'fbjs/lib/emptyObject' ;
34import { createElement } from './createElement' ;
45
@@ -15,6 +16,7 @@ const MDXRenderer = Reconciler<
1516 any ,
1617 any ,
1718 any ,
19+ any ,
1820 any
1921> ( {
2022 appendInitialChild ( parentInstance , child ) {
@@ -46,10 +48,6 @@ const MDXRenderer = Reconciler<
4648 return null ;
4749 } ,
4850
49- prepareUpdate ( ) {
50- return true ;
51- } ,
52-
5351 resetAfterCommit ( ) {
5452 // noop
5553 } ,
@@ -73,7 +71,7 @@ const MDXRenderer = Reconciler<
7371
7472 preparePortalMount ( ) { } ,
7573
76- supportsHydration : true ,
74+ supportsHydration : false ,
7775
7876 supportsPersistence : false ,
7977
@@ -85,12 +83,6 @@ const MDXRenderer = Reconciler<
8583
8684 noTimeout : - 1 ,
8785
88- // eslint-disable-next-line no-undef
89- queueMicrotask : queueMicrotask ,
90-
91- //@ts -ignore
92- now : ( ) => { } ,
93-
9486 // Setting to false leads to crash...
9587 supportsMutation : true ,
9688
@@ -136,6 +128,36 @@ const MDXRenderer = Reconciler<
136128
137129 commitTextUpdate ( textInstance , oldText , newText ) {
138130 textInstance . children = newText ;
131+ } ,
132+
133+ resolveUpdatePriority ( ) {
134+ return DefaultEventPriority ;
135+ } ,
136+
137+ NotPendingTransition : undefined ,
138+
139+ HostTransitionContext : undefined ,
140+
141+ setCurrentUpdatePriority : function (
142+ newPriority : Reconciler . EventPriority
143+ ) : void {
144+ // noop
145+ } ,
146+
147+ getCurrentUpdatePriority : function ( ) : Reconciler . EventPriority {
148+ return DefaultEventPriority ;
149+ } ,
150+
151+ trackSchedulerEvent : function ( ) : void {
152+ // noop
153+ } ,
154+
155+ resolveEventType : function ( ) : null | string {
156+ return null ;
157+ } ,
158+
159+ resolveEventTimeStamp : function ( ) : number {
160+ return - 1 ;
139161 }
140162} ) ;
141163
0 commit comments