Added Error Boundary (#649)

* Added Error Boundary

* Test improvements

* Introduced useDevLogger

* Updated Cypress to latest and aligned the tests

* Added eslint-enable

* Set allowCypressEnv: false for security reasons.
This commit is contained in:
yuri-sakharov
2026-02-08 20:22:04 +02:00
committed by GitHub
parent ea7f8722ac
commit f647a3db03
16 changed files with 763 additions and 536 deletions

View File

@@ -0,0 +1,9 @@
import { useEffect } from "react";
export const useDevLogger = (error: unknown) => {
useEffect(() => {
if (import.meta.env.DEV) {
console.error("UnexpectedError", error);
}
}, [error]);
};