diff --git a/app/hooks/swr.ts b/app/hooks/swr.ts index 01ab29c97..3f2aa18d9 100644 --- a/app/hooks/swr.ts +++ b/app/hooks/swr.ts @@ -11,6 +11,8 @@ import { getWeaponUsage, } from "~/utils/urls"; +// TODO: replace with useFetcher after proper errr handling is implemented https://github.com/remix-run/react-router/discussions/10013 + const fetcher = (key: string) => async (url: string) => { const res = await fetch(url); if (res.status !== 200) {