fix: don't store codeframe on error object (#1898)

This commit is contained in:
Marvin Hagemeister
2023-10-10 15:03:22 +02:00
committed by GitHub
parent 500336e97d
commit bc89844ea7
4 changed files with 13 additions and 6 deletions
+3
View File
@@ -418,6 +418,9 @@ export interface ErrorPageProps {
/** The error that caused the error page to be loaded. */
error: unknown;
/** Sringified code frame (only in development mode) */
codeFrame?: string;
}
export interface ErrorHandlerContext<State = Record<string, unknown>>