aboutsummaryrefslogtreecommitdiffhomepage
path: root/package.json
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-02-01 10:16:35 +0900
committernsfisis <nsfisis@gmail.com>2026-02-01 10:16:38 +0900
commita07dada0c9ba80976692ee14e256da0a2d6b0112 (patch)
tree7de73126b4e69ed3e2128e19da2eca56fe4f9e68 /package.json
parent081498168fe25b377f4675637c57a08e4e399f95 (diff)
downloadkioku-a07dada0c9ba80976692ee14e256da0a2d6b0112.tar.gz
kioku-a07dada0c9ba80976692ee14e256da0a2d6b0112.tar.zst
kioku-a07dada0c9ba80976692ee14e256da0a2d6b0112.zip
refactor(atoms): migrate to jotai-tanstack-query from custom reloadable atoms
Replace custom createReloadableAtom/createReloadableAtomFamily with atomWithSuspenseQuery from jotai-tanstack-query, leveraging TanStack Query's built-in caching, invalidation, and Suspense support. - Add @tanstack/query-core and jotai-tanstack-query dependencies - Create shared QueryClient instance (src/client/queryClient.ts) - Migrate all data atoms (decks, cards, study, noteTypes) to atomWithSuspenseQuery - Update page components to use .data destructuring and queryClient.invalidateQueries() - Update all test files to use QueryClient for data hydration - Remove src/client/atoms/utils.ts (no longer needed) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Diffstat (limited to 'package.json')
-rw-r--r--package.json2
1 files changed, 2 insertions, 0 deletions
diff --git a/package.json b/package.json
index b8a8f56..f426ff0 100644
--- a/package.json
+++ b/package.json
@@ -37,6 +37,7 @@
"@fortawesome/react-fontawesome": "^3.1.1",
"@hono/node-server": "^1.19.7",
"@hono/zod-validator": "^0.7.6",
+ "@tanstack/query-core": "^5.90.20",
"argon2": "^0.44.0",
"dexie": "^4.2.1",
"drizzle-kit": "^0.31.8",
@@ -44,6 +45,7 @@
"hono": "^4.11.3",
"hono-rate-limiter": "^0.5.3",
"jotai": "^2.16.1",
+ "jotai-tanstack-query": "^0.11.0",
"pg": "^8.16.3",
"react": "^19.2.3",
"react-dom": "^19.2.3",