mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-09-11 13:46:10 -05:00
Add note about swr
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user