You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
memos/web
Steven d4e08ae2bd refactor(react-query): optimize config, add error boundary, and remove JSDoc
This commit combines multiple improvements to the React Query migration:

Performance Optimization:
- Increase default staleTime from 10s to 30s for better performance
- Reduces unnecessary network requests while maintaining data freshness

Error Handling:
- Add ErrorBoundary component with user-friendly error UI
- Integrated at app root level for comprehensive coverage
- Provides error details and reload option

Documentation:
- Add docs/auth-architecture.md explaining AuthContext design decisions
- Document why AuthContext is preferred over React Query for current user

Code Cleanup:
- Remove all JSDoc comments from hooks and components
- Keep essential inline comments for clarity
- Simplifies code readability

Files modified:
- src/lib/query-client.ts - Optimized staleTime
- src/main.tsx - Added ErrorBoundary wrapper
- src/components/ErrorBoundary.tsx - New component
- src/hooks/useMemoQueries.ts - Removed JSDoc
- src/hooks/useUserQueries.ts - Removed JSDoc
- src/components/PagedMemoList/PagedMemoList.tsx - Removed JSDoc
- docs/auth-architecture.md - New documentation

All changes verified with TypeScript compilation and production build.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
5 months ago
..
docs refactor(react-query): optimize config, add error boundary, and remove JSDoc 5 months ago
public chore: enhance site.webmanifest in firefox (#4828) 11 months ago
src refactor(react-query): optimize config, add error boundary, and remove JSDoc 5 months ago
.gitignore chore: update gitignore 1 year ago
biome.json chore(web): migrate from ESLint+Prettier to Biome 7 months ago
components.json feat: themes (#4824) 11 months ago
index.html chore: prevent sensitive data caching 5 months ago
package.json feat: react query migration (#5379) 5 months ago
pnpm-lock.yaml feat: react query migration (#5379) 5 months ago
tsconfig.json refactor: update import prefix with alias (#1433) 3 years ago
vite.config.mts refactor(web): improve MemoContent security and maintainability 6 months ago