mirror of
https://github.com/purrgrammer/grimoire.git
synced 2026-04-09 15:07:10 +02:00
4b7148510a8a2836f57e2991599ff31958d9ad2e
Phase 1 of applesauce helpers refactoring plan. Removed useMemo from direct applesauce helper calls since these helpers cache their results internally using symbol-based caching. This improves code clarity without sacrificing performance. Changes: - ArticleRenderer.tsx: removed useMemo from getArticleTitle, getArticleSummary - HighlightRenderer.tsx: removed useMemo from 6 highlight helpers - HighlightDetailRenderer.tsx: removed useMemo from 6 highlight helpers - CodeSnippetDetailRenderer.tsx: removed useMemo from 8 NIP-C0 helpers - ChatView.tsx: removed useMemo from getNip10References, getTagValue Kept useMemo in LiveActivityRenderer.tsx for parseLiveActivity and related functions since these don't implement their own caching (noted for future optimization). All tests pass (607 tests).
Languages
TypeScript
98.9%
CSS
0.8%
JavaScript
0.3%