File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -380,8 +380,10 @@ import { queryClient } from "mobx-tanstack-query/preset";
380380
381381const defaultOptions = queryClient .getDefaultOptions ();
382382defaultOptions .queries ! .refetchOnMount = true ;
383- queryClient .setDefaultOptions ({ ... defaultOptions })─────────────────────────────────────────────────────────────────────────────────────────────────────────(js2me @js2me - B560 - HD3 :pts / 9 )─┐
384- └─(12 :51 :47 on master )──>
383+ queryClient .setDefaultOptions ({ ... defaultOptions })
384+ ```
385+
386+
385387P.S. Overriding default options should be written before start whole application
386388
387389
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ export const defaultQueryClientConfig = {
1111 queryKeyHashFn : hashKey ,
1212 refetchOnWindowFocus : 'always' ,
1313 refetchOnReconnect : 'always' ,
14+ structuralSharing : false , // see https://github.com/js2me/mobx-tanstack-query/issues/7
1415 staleTime : 5 * 60 * 1000 ,
1516 retry : ( failureCount , error ) => {
1617 if ( error instanceof Response && error . status >= 500 ) {
You can’t perform that action at this time.
0 commit comments