You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can this parameter be optional for custom renderers that don't need animation?
"@types/react-reconciler": "0.32.0" requires the following functions compared to "@types/react-reconciler": "0.31.0"
I believe that in most cases you can use the default implementation or provide a default error function? When you really need to use custom functions, add your own custom functions
NotPendingTransition: undefined,
resetFormInstance: function (): void {
throw new Error("Function not implemented.")
},
requestPostPaintCallback: function (): void {
throw new Error("Function not implemented.")
},
shouldAttemptEagerTransition: function (): boolean {
throw new Error("Function not implemented.")
},
trackSchedulerEvent: function (): void {
throw new Error("Function not implemented.")
},
resolveEventType: function (): null | string {
throw new Error("Function not implemented.")
},
resolveEventTimeStamp: function (): number {
throw new Error("Function not implemented.")
},
preloadInstance: function (): boolean {
throw new Error("Function not implemented.")
},
startSuspendingCommit: function (): void {
throw new Error("Function not implemented.")
},
suspendInstance: function (): void {
throw new Error("Function not implemented.")
},
waitForCommitToBeReady: function (): ((initiateCommit: (...args: unknown[]) => unknown) => (...args: unknown[]) => unknown) | null {
throw new Error("Function not implemented.")
},
HostTransitionContext: undefined
The text was updated successfully, but these errors were encountered:
React version:
Steps To Reproduce
The parameters of the createReconciler function are too complex. Is it possible to provide default values?
Using vscode to autocomplete the createReconciler function, it's very complicated
For example, HostTransitionContext, in
"@types/react-reconciler": "0.31.0"
, I didn't pass in this parameter, and its default value seems to bereact/packages/react-native-renderer/src/ReactFiberConfigFabric.js
Line 716 in e5a8de8
Can this parameter be optional for custom renderers that don't need animation?
"@types/react-reconciler": "0.32.0"
requires the following functions compared to"@types/react-reconciler": "0.31.0"
I believe that in most cases you can use the default implementation or provide a default error function? When you really need to use custom functions, add your own custom functions
The text was updated successfully, but these errors were encountered: