1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-12-21 20:06:40 +01:00
This commit is contained in:
Thomas Heartman 2025-12-19 13:55:31 +01:00 committed by GitHub
commit 581a8b83f6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -33,3 +33,8 @@ export const fetcher = (path: string, errorTarget: string) => {
.then(handleErrorResponses(errorTarget))
.then((res) => res.json());
};
export const createFetcher =
({ url, errorTarget }: { url: string; errorTarget: string }) =>
() =>
fetcher(url, errorTarget);