Add note about swr

This commit is contained in:
Kalle
2024-07-06 13:17:19 +03:00
parent d9a1e3ba57
commit e4b815c8f3

View File

@@ -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) {