diff --git a/apps/time/package.json b/apps/time/package.json
index 0e95e3c1..9e07faf0 100644
--- a/apps/time/package.json
+++ b/apps/time/package.json
@@ -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",
diff --git a/apps/time/src/shared/utils/Providers.tsx b/apps/time/src/shared/utils/Providers.tsx
index db715c0a..de709e43 100644
--- a/apps/time/src/shared/utils/Providers.tsx
+++ b/apps/time/src/shared/utils/Providers.tsx
@@ -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 {children};
+ const queryClient = new QueryClient();
+
+ return (
+
+ {children}
+
+
+ );
}
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 8f7096fe..18f90455 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -351,6 +351,12 @@ importers:
'@clab-platforms/utils':
specifier: workspace:*
version: link:../../packages/utils
+ '@tanstack/react-query':
+ specifier: ^5.51.23
+ version: 5.51.23(react@18.2.0)
+ '@tanstack/react-query-devtools':
+ specifier: ^5.40.1
+ version: 5.45.1(@tanstack/react-query@5.51.23(react@18.2.0))(react@18.2.0)
jotai:
specifier: ^2.9.2
version: 2.9.2(@types/react@18.2.77)(react@18.2.0)
@@ -2647,6 +2653,9 @@ packages:
'@tanstack/query-core@5.29.0':
resolution: {integrity: sha512-WgPTRs58hm9CMzEr5jpISe8HXa3qKQ8CxewdYZeVnA54JrPY9B1CZiwsCoLpLkf0dGRZq+LcX5OiJb0bEsOFww==}
+ '@tanstack/query-core@5.51.21':
+ resolution: {integrity: sha512-POQxm42IUp6n89kKWF4IZi18v3fxQWFRolvBA6phNVmA8psdfB1MvDnGacCJdS+EOX12w/CyHM62z//rHmYmvw==}
+
'@tanstack/query-core@5.51.9':
resolution: {integrity: sha512-HsAwaY5J19MD18ykZDS3aVVh+bAt0i7m6uQlFC2b77DLV9djo+xEN7MWQAQQTR8IM+7r/zbozTQ7P0xr0bHuew==}
@@ -2664,6 +2673,11 @@ packages:
peerDependencies:
react: ^18.0.0
+ '@tanstack/react-query@5.51.23':
+ resolution: {integrity: sha512-CfJCfX45nnVIZjQBRYYtvVMIsGgWLKLYC4xcUiYEey671n1alvTZoCBaU9B85O8mF/tx9LPyrI04A6Bs2THv4A==}
+ peerDependencies:
+ react: ^18.0.0
+
'@tanstack/react-query@5.51.9':
resolution: {integrity: sha512-F8j6i42wfKvFrRcxfOyFyYME+bPfNthAGOSkjdv4UwZZXJjnBnBs/yRQGT0bD23LVCTuBzlIfZ0GKSIyclZ9rQ==}
peerDependencies:
@@ -9778,10 +9792,18 @@ snapshots:
'@tanstack/query-core@5.29.0': {}
+ '@tanstack/query-core@5.51.21': {}
+
'@tanstack/query-core@5.51.9': {}
'@tanstack/query-devtools@5.37.1': {}
+ '@tanstack/react-query-devtools@5.45.1(@tanstack/react-query@5.51.23(react@18.2.0))(react@18.2.0)':
+ dependencies:
+ '@tanstack/query-devtools': 5.37.1
+ '@tanstack/react-query': 5.51.23(react@18.2.0)
+ react: 18.2.0
+
'@tanstack/react-query-devtools@5.45.1(@tanstack/react-query@5.51.9(react@18.2.0))(react@18.2.0)':
dependencies:
'@tanstack/query-devtools': 5.37.1
@@ -9793,6 +9815,11 @@ snapshots:
'@tanstack/query-core': 5.29.0
react: 18.2.0
+ '@tanstack/react-query@5.51.23(react@18.2.0)':
+ dependencies:
+ '@tanstack/query-core': 5.51.21
+ react: 18.2.0
+
'@tanstack/react-query@5.51.9(react@18.2.0)':
dependencies:
'@tanstack/query-core': 5.51.9
@@ -11424,7 +11451,7 @@ snapshots:
eslint: 8.57.0
eslint-import-resolver-node: 0.3.9
eslint-import-resolver-typescript: 3.6.1(@typescript-eslint/parser@6.21.0(eslint@8.57.0)(typescript@5.4.5))(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.29.1)(eslint@8.57.0)
- eslint-plugin-import: 2.29.1(@typescript-eslint/parser@6.21.0(eslint@8.57.0)(typescript@5.4.5))(eslint-import-resolver-typescript@3.6.1)(eslint@8.57.0)
+ eslint-plugin-import: 2.29.1(@typescript-eslint/parser@6.21.0(eslint@8.57.0)(typescript@5.4.5))(eslint@8.57.0)
eslint-plugin-jsx-a11y: 6.8.0(eslint@8.57.0)
eslint-plugin-react: 7.34.1(eslint@8.57.0)
eslint-plugin-react-hooks: 4.6.0(eslint@8.57.0)
@@ -11469,7 +11496,7 @@ snapshots:
enhanced-resolve: 5.16.0
eslint: 8.57.0
eslint-module-utils: 2.8.1(@typescript-eslint/parser@6.21.0(eslint@8.57.0)(typescript@5.4.5))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.6.1(@typescript-eslint/parser@6.21.0(eslint@8.57.0)(typescript@5.4.5))(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.29.1)(eslint@8.57.0))(eslint@8.57.0)
- eslint-plugin-import: 2.29.1(@typescript-eslint/parser@6.21.0(eslint@8.57.0)(typescript@5.4.5))(eslint-import-resolver-typescript@3.6.1)(eslint@8.57.0)
+ eslint-plugin-import: 2.29.1(@typescript-eslint/parser@6.21.0(eslint@8.57.0)(typescript@5.4.5))(eslint@8.57.0)
fast-glob: 3.3.2
get-tsconfig: 4.7.3
is-core-module: 2.13.1
@@ -11502,6 +11529,16 @@ snapshots:
transitivePeerDependencies:
- supports-color
+ eslint-module-utils@2.8.1(@typescript-eslint/parser@6.21.0(eslint@8.57.0)(typescript@5.4.5))(eslint-import-resolver-node@0.3.9)(eslint@8.57.0):
+ dependencies:
+ debug: 3.2.7
+ optionalDependencies:
+ '@typescript-eslint/parser': 6.21.0(eslint@8.57.0)(typescript@5.4.5)
+ eslint: 8.57.0
+ eslint-import-resolver-node: 0.3.9
+ transitivePeerDependencies:
+ - supports-color
+
eslint-plugin-import@2.29.1(@typescript-eslint/parser@6.21.0(eslint@8.57.0)(typescript@5.4.5))(eslint-import-resolver-typescript@3.6.1(@typescript-eslint/parser@6.21.0(eslint@8.57.0)(typescript@5.4.5))(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.29.1(@typescript-eslint/parser@6.21.0(eslint@8.57.0)(typescript@5.4.5))(eslint@8.57.0))(eslint@8.57.0))(eslint@8.57.0):
dependencies:
array-includes: 3.1.8
@@ -11529,7 +11566,7 @@ snapshots:
- eslint-import-resolver-webpack
- supports-color
- eslint-plugin-import@2.29.1(@typescript-eslint/parser@6.21.0(eslint@8.57.0)(typescript@5.4.5))(eslint-import-resolver-typescript@3.6.1)(eslint@8.57.0):
+ eslint-plugin-import@2.29.1(@typescript-eslint/parser@6.21.0(eslint@8.57.0)(typescript@5.4.5))(eslint@8.57.0):
dependencies:
array-includes: 3.1.8
array.prototype.findlastindex: 1.2.5
@@ -11539,7 +11576,7 @@ snapshots:
doctrine: 2.1.0
eslint: 8.57.0
eslint-import-resolver-node: 0.3.9
- eslint-module-utils: 2.8.1(@typescript-eslint/parser@6.21.0(eslint@8.57.0)(typescript@5.4.5))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.6.1(@typescript-eslint/parser@6.21.0(eslint@8.57.0)(typescript@5.4.5))(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.29.1)(eslint@8.57.0))(eslint@8.57.0)
+ eslint-module-utils: 2.8.1(@typescript-eslint/parser@6.21.0(eslint@8.57.0)(typescript@5.4.5))(eslint-import-resolver-node@0.3.9)(eslint@8.57.0)
hasown: 2.0.2
is-core-module: 2.13.1
is-glob: 4.0.3