From a0159a3d4b0edc503d120ceb4fdbac9e1fad15cb Mon Sep 17 00:00:00 2001 From: Jake Jarvis Date: Sun, 4 Oct 2026 15:59:08 -0400 Subject: [PATCH] fix(web): make Retry and Try again actually refetch Co-Authored-By: Claude Sonnet 5.5 --- apps/web/src/components/route-error.tsx | 8 ++++---- apps/web/src/lib/orpc/client.ts | 2 +- apps/web/src/routes/__root.tsx | 12 ++++-------- 3 files changed, 9 insertions(+), 13 deletions(-) diff --git a/apps/web/src/components/route-error.tsx b/apps/web/src/components/route-error.tsx index b8bf1a7..1c12f96 100644 --- a/apps/web/src/components/route-error.tsx +++ b/apps/web/src/components/route-error.tsx @@ -1,10 +1,10 @@ import { Trans, useLingui } from "@lingui/react/macro"; import { IconAlertTriangle } from "@tabler/icons-react"; -import type { ErrorComponentProps } from "@tanstack/react-router"; -import { Link } from "@tanstack/react-router"; +import { Link, useRouter } from "@tanstack/react-router"; -export function RouteError({ reset }: ErrorComponentProps) { +export function RouteError() { const { t } = useLingui(); + const router = useRouter(); return (
@@ -26,7 +26,7 @@ export function RouteError({ reset }: ErrorComponentProps) {