API Reference / @gtkx/react / index / RootOptions
Type Alias: RootOptions
RootOptions =
object
Defined in: reconciler/root.d.ts:10
Options for createRoot, mirroring the options React DOM's own createRoot takes.
Properties
identifierPrefix?
optionalidentifierPrefix?:string
Defined in: reconciler/root.d.ts:18
Prefix useId puts in front of every identifier it generates under this root.
onCaughtError?
optionalonCaughtError?: (error,errorInfo) =>void
Defined in: reconciler/root.d.ts:14
Called for a render error an error boundary caught; the error is logged when this is omitted.
Parameters
error
unknown
errorInfo
Returns
void
onRecoverableError?
optionalonRecoverableError?: (error,errorInfo) =>void
Defined in: reconciler/root.d.ts:16
Called for a render error React recovered from by rendering again; the error is logged when this is omitted.
Parameters
error
unknown
errorInfo
ErrorInfo
Returns
void
onUncaughtError?
optionalonUncaughtError?: (error,errorInfo) =>void
Defined in: reconciler/root.d.ts:12
Called for a render error no error boundary caught; the error is rethrown when this is omitted.
Parameters
error
unknown
errorInfo
ErrorInfo
Returns
void