From e4b815c8f3ee716b38d59f557d849249a61561a3 Mon Sep 17 00:00:00 2001 From: Kalle <38327916+Sendouc@users.noreply.github.com> Date: Sat, 6 Jul 2024 13:17:19 +0300 Subject: [PATCH] Add note about swr --- app/hooks/swr.ts | 2 ++ 1 file changed, 2 insertions(+) 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) {