fix: corriger 4 erreurs console post-migration RSC
- Hydration mismatch @dnd-kit: ajouter id="notes-tabs-dnd" et id="masonry-dnd" aux DndContext pour éviter les IDs auto-incrémentaux non-déterministes (DndDescribedBy-0 server vs DndDescribedBy-3 client) - setState in render: refactorer handleDragEnd dans MasonryGrid — remplacer le double setLocalNotes() par arrayMove direct + ref pour la persistance (évite Cannot update Router while rendering MasonryGrid) - DialogTitle manquant: ajouter DialogHeader+DialogTitle sr-only dans le loading state de AutoLabelSuggestionDialog (Radix accessibility requirement) - Ajouter useRef pour tracker localNotes sans capturer de stale closure
This commit is contained in:
@@ -370,6 +370,7 @@ export function NotesTabsView({ notes, onEdit, currentNotebookId }: NotesTabsVie
|
||||
aria-label={t('notes.viewTabs')}
|
||||
>
|
||||
<DndContext
|
||||
id="notes-tabs-dnd"
|
||||
sensors={sensors}
|
||||
collisionDetection={closestCenter}
|
||||
onDragEnd={handleDragEnd}
|
||||
|
||||
Reference in New Issue
Block a user