Skip to content

Commit

Permalink
chore(time): install react-query & react-query-devtools (#97)
Browse files Browse the repository at this point in the history
  • Loading branch information
SWARVY committed Aug 17, 2024
1 parent 3b3cb40 commit 59104f3
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 5 deletions.
2 changes: 2 additions & 0 deletions apps/time/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
"@clab-platforms/design-system": "workspace:*",
"@clab-platforms/icon": "workspace:^",
"@clab-platforms/utils": "workspace:*",
"@tanstack/react-query": "^5.51.23",
"@tanstack/react-query-devtools": "^5.40.1",
"jotai": "^2.9.2",
"next": "14.1.4",
"react": "^18",
Expand Down
12 changes: 11 additions & 1 deletion apps/time/src/shared/utils/Providers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,18 @@

import { PropsWithChildren } from 'react';

import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
import { ReactQueryDevtools } from '@tanstack/react-query-devtools';

import { Provider } from 'jotai';

export default function Providers({ children }: PropsWithChildren) {
return <Provider>{children}</Provider>;
const queryClient = new QueryClient();

return (
<QueryClientProvider client={queryClient}>
<Provider>{children}</Provider>
<ReactQueryDevtools initialIsOpen={false} />
</QueryClientProvider>
);
}
45 changes: 41 additions & 4 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 59104f3

Please sign in to comment.