diff --git a/app/(root)/questions/[id]/error.tsx b/app/(root)/questions/[id]/error.tsx new file mode 100644 index 0000000..286c604 --- /dev/null +++ b/app/(root)/questions/[id]/error.tsx @@ -0,0 +1,19 @@ +"use client"; + +import { useEffect } from "react"; + +export default function ErrorBoundary({ + error, + reset, +}: { + error: Error & { digest?: string }; + reset: () => void; +}) { + useEffect(() => console.error(error), [error]); + return ( +
-// ),
-// }}
-// />
-//
+// ),
+// }}
+// />
+//