4c7684a3a7
- Optimize Novel screen components with useCallback, useMemo, and memo to prevent unnecessary re-renders - Replace download queue array iteration with downloadingChapterIds Set for O(1) lookups - Add loading shimmer to chapter count display (replaces "Loading..." text) - Fix state mutation bug in useNovel updateChapter (now creates new array) - Refactor ChapterItem API (onDeleteChapter, onDownloadChapter props for better stability) - Track download completion via useEffect to update chapter isDownloaded state - Fix pagination control logic and improve spacing - Remove unnecessary local state in ChapterDownloadButtons Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>