Skip to content

Commit

Permalink
Add patch for react-query and refactor ShellHooksContext imports
Browse files Browse the repository at this point in the history
  • Loading branch information
hervedombya committed Dec 5, 2024
1 parent dfd30e6 commit 5cd0c10
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
10 changes: 10 additions & 0 deletions ui/patches/react-query+3.34.0.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
diff --git a/node_modules/react-query/types/react/QueryClientProvider.d.ts b/node_modules/react-query/types/react/QueryClientProvider.d.ts
index 65e1214..ea9fbf0 100644
--- a/node_modules/react-query/types/react/QueryClientProvider.d.ts
+++ b/node_modules/react-query/types/react/QueryClientProvider.d.ts
@@ -10,4 +10,4 @@ export interface QueryClientProviderProps {
client: QueryClient;
contextSharing?: boolean;
}
-export declare const QueryClientProvider: React.FC<QueryClientProviderProps>;
+export declare const QueryClientProvider: React.FC<React.PropsWithChildren<QueryClientProviderProps>>;
8 changes: 4 additions & 4 deletions ui/src/ShellHooksContext.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { FC, ReactNode, useMemo, useSyncExternalStore } from 'react';
import { ShellTypes } from '../@mf-types/shell/compiled-types/src/FederatedApp';

export type ShellHooks = ShellTypes['shellHooks'];
export type ShellAlerts = ShellTypes['shellAlerts'];
import {
ShellAlerts,
ShellHooks,
} from '../@mf-types/shell/compiled-types/src/hooks/useShellHooks';

type Listener = () => void;

Expand Down
1 change: 0 additions & 1 deletion ui/src/components/__TEST__/util.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,6 @@ const customRender = (
options = {},
providersArgs: [string] = ['/'],
) =>
// @ts-expect-error - FIXME when you are working on it
render(ui, {
wrapper: AllTheProviders(...providersArgs),
...options,
Expand Down

0 comments on commit 5cd0c10

Please sign in to comment.