← Todas as ideias

Notes: Use server data as initial state and stop loading 500 full notes

NovaNotesIdeia

Notes scores CLS 0.133 (measured, 4x CPU): NotesApp.tsx:178,201 refetches /api/notes on mount and the main panel re-lays out. listNotes (lib/notes.ts:282-284) does SELECT n.* (full blocks and body_text) for up to 500 rows to show a snippet, and the list is not virtualized. It shares the Docs editor, so it also inherits the empty-blocks-on-SSR issue. First scope: initialize state from the server component, select only the needed columns plus substr(body_text,1,200), and paginate or virtualize the list. Priority: medium. Effort: M.

Comentários 0

Ainda sem comentários.