Add SWR for data fetching and implement useSWRStorage hook: update package.json and package-lock.json to include SWR dependency, and create a custom hook for managing localStorage with SWR for improved data persistence.

This commit is contained in:
Norbert Maciaszek
2025-08-16 13:42:33 +02:00
parent 03b00ad399
commit 7ecbc55843
3 changed files with 65 additions and 2 deletions

View File

@@ -16,7 +16,8 @@
"next": "15.4.5",
"react": "19.1.0",
"react-dom": "19.1.0",
"react-icons": "^5.5.0"
"react-icons": "^5.5.0",
"swr": "^2.3.6"
},
"devDependencies": {
"@tailwindcss/postcss": "^4",