File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -905,10 +905,10 @@ import { addOfflineSupportToQueryClient } from 'react-admin';
905905import { QueryClient } from ' @tanstack/react-query' ;
906906import { dataProvider } from ' ./dataProvider' ;
907907
908- export const queryClient = new QueryClient ();
908+ const baseQueryClient = new QueryClient ();
909909
910- const queryClientWithOfflineSupport = addOfflineSupportToQueryClient ({
911- queryClient ,
910+ export const queryClient = addOfflineSupportToQueryClient ({
911+ queryClient: baseQueryClient ,
912912 dataProvider ,
913913 resources: [' posts' , ' comments' ],
914914});
@@ -1007,14 +1007,14 @@ import { dataProvider } from './dataProvider';
10071007const baseQueryClient = new QueryClient ();
10081008
10091009export const queryClient = addOfflineSupportToQueryClient ({
1010- queryClient ,
1010+ queryClient: baseQueryClient ,
10111011 dataProvider ,
10121012 resources: [' posts' , ' comments' ],
10131013});
10141014
10151015queryClient .setMutationDefaults (' banUser' , {
10161016 mutationFn : async (userId ) => {
1017- return dataProviderFn .banUser (userId );
1017+ return dataProvider .banUser (userId );
10181018 },
10191019});
10201020```
You can’t perform that action at this time.
0 commit comments