react query ftw
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user