Skip to content

Commit

Permalink
feat: integrate Tanstack Query for GitHub repositories management
Browse files Browse the repository at this point in the history
- Added @tanstack/react-query for efficient data fetching and state management.
- Replaced Zustand store with a custom hook (useGithubRepos) to handle repository data, including search functionality and pagination.
- Updated ClientProjects component to utilize the new hook, improving loading states and error handling.
- Modified SearchInput component to accept props for better reusability.
- Removed the Zustand store for GitHub, streamlining state management.
- Updated README to reflect changes in state management and added Tanstack Query details.
  • Loading branch information
kWAYTV committed Dec 7, 2024
1 parent aca28c5 commit d9b29e8
Show file tree
Hide file tree
Showing 10 changed files with 2,970 additions and 1,123 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ A modern, fast, and responsive portfolio built with cutting-edge technologies.
- **UI Components**: Custom components with
[shadcn/ui](https://www.radix-ui.com/)
- **Content**: [MDX](https://mdxjs.com/) for blog posts
- **State Management**: [Zustand](https://github.com/pmndrs/zustand)
- **Query Client** [Tanstack Query](https://tanstack.com/query/)
- **Animations**: [Motion](https://motion.dev/)
- **Icons**: [Lucide](https://lucide.dev/)
- **Development**:
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"@radix-ui/react-slot": "^1.1.0",
"@radix-ui/react-tooltip": "^1.1.4",
"@t3-oss/env-nextjs": "^0.11.1",
"@tanstack/react-query": "^5.62.3",
"bumpp": "^9.8.1",
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
Expand All @@ -32,8 +33,7 @@
"tailwind-merge": "^2.5.5",
"tailwindcss-animate": "^1.0.7",
"use-debounce": "^10.0.4",
"zod": "^3.23.8",
"zustand": "^5.0.2"
"zod": "^3.23.8"
},
"devDependencies": {
"@types/node": "^20.17.9",
Expand Down
Loading

0 comments on commit d9b29e8

Please sign in to comment.