mirror of
https://github.com/Unleash/unleash.git
synced 2025-12-21 20:06:40 +01:00
Merge 767b2115f6 into eca2ca395b
This commit is contained in:
commit
581a8b83f6
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user