Skip to content

Commit

Permalink
chore: code maintenance [bot]
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Dec 11, 2024
1 parent 9463a81 commit abd2446
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
11 changes: 4 additions & 7 deletions src/components/ParticleProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,8 @@ export function ParticleProvider({ children }: ParticleProviderProps) {
} satisfies AuthCoreContextProviderOptions;
}, [isDark, locale]);

return useMemo(
() => {
if (!options) return children;
return <AuthCoreContextProvider options={options}>{children}</AuthCoreContextProvider>
},
[options, children],
);
return useMemo(() => {
if (!options) return children;
return <AuthCoreContextProvider options={options}>{children}</AuthCoreContextProvider>;
}, [options, children]);
}
2 changes: 1 addition & 1 deletion src/components/QueryClientProviders.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
import { QueryClientProvider } from '@tanstack/react-query';
import { ReactQueryStreamedHydration } from '@tanstack/react-query-next-experimental';
import type React from 'react';
import { useMemo } from 'react';

import { queryClient } from '@/configs/queryClient.js';
import { useMemo } from 'react';

export function QueryClientProviders({ children }: { children: React.ReactNode }) {
const memoizedHydration = useMemo(
Expand Down

0 comments on commit abd2446

Please sign in to comment.