Skip to content

Commit

Permalink
qfix cloud middlewares inject (#5344)
Browse files Browse the repository at this point in the history
Co-authored-by: Artem Astapenko <jamakase54@gmail.com>
  • Loading branch information
cgardens and jamakase committed Aug 11, 2021
1 parent 6e5f5a3 commit 14a81b4
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -13,6 +13,7 @@ let middlewares: {
} = {};

export function getMiddlewares() {
console.log(middlewares);
return Object.values(middlewares);
}

Expand All @@ -25,7 +26,7 @@ export const useRequestMiddlewareProvider = (): RequestMiddlewareProvider => {
}>();

useEffect(() => {
middlewares = requestMiddlewares;
middlewares = { ...middlewares, ...requestMiddlewares };
}, [requestMiddlewares]);

return useMemo<RequestMiddlewareProvider>(
Expand Down

0 comments on commit 14a81b4

Please sign in to comment.