react query ftw

This commit is contained in:
2025-08-14 22:46:42 +03:00
parent 78f792578d
commit 502a25fe52
24 changed files with 365 additions and 462 deletions

View File

@@ -242,7 +242,7 @@ export function findClosestBrickColor(hex: string): {
col: [number, number, number];
} {
const target = hexToRgb(hex);
console.log(hex,target)
console.log(hex, target);
if (!target) throw new Error("Invalid hex");
let bestDist = Infinity;

View File

@@ -28,7 +28,7 @@ export async function proxyFetchRaw(
...init,
method: init?.method || "GET",
headers,
body: init?.body,
body: init?.body
};
return window.fetch(proxyUrl, fetchInit);
@@ -57,7 +57,7 @@ export async function proxyFetch(
response = await proxyFetchRaw(input, {
...init,
headers: newHeaders,
headers: newHeaders
});
}