Update jotai to 3
- Dominant language
- TypeScript
- Stars
- 481
- Forks
- 108
- Avg merge
- 6d 8h
- Merged PRs (30d)
- 5
Description
`jotai` stayed on ^2.20.1 in the latest dependency sweep. 3.0.0 breaks the build in two ways.
(`jotai-family` is already on ^1.1.0 and needs no further change.)
## Blockers found
**Removed subpath** — `packages/graph-explorer/src/core/queryClient.ts:1` imports from
`jotai/vanilla/store`, which no longer exists in v3: `error TS2307: Cannot find module
'jotai/vanilla/store'`. Needs the v3 equivalent for whatever store type it pulls in.
**Inference regressions** — 6 × `error TS7006` implicit `any` on callback parameters, all in the
bulk/search query modules:
- `connector/queries/bulkEdgeDetailsQuery.ts:59, :64`
- `connector/queries/bulkVertexDetailsQuery.ts:59, :64`
- `connector/queries/bulkNeighborCountsQuery.ts:53`
- `connector/queries/searchQuery.ts:34`
These are likely downstream of the store type import failing rather than six independent problems —
fix the import first and re-measure.
## Acceptance
`pnpm checks` and `pnpm test` pass with jotai at 3.x.
> [!IMPORTANT]
> Internal only — this issue is maintained by the core team and is not accepting external contributions.
Contributor guide
Research direction
Start at packages/graph-explorer/src/core/queryClient.ts:1 and verify which store type the removed jotai/vanilla/store import provides. After updating the dependency to 3.x, recheck the listed bulk and search query modules for the TS7006 errors, then run pnpm checks and pnpm test; done means both pass.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend
- Issue type
- Refactor
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Clearly specified
- Newbie friendliness
- 25/100