docs(front-matter): add YAML front-matter to patterns/

This commit is contained in:
Janpeter Visser 2026-05-03 00:29:25 +02:00
parent f106af9ab4
commit 6beed46311
10 changed files with 90 additions and 0 deletions

View file

@ -1,3 +1,12 @@
---
title: "Zustand optimistische update + rollback"
status: active
audience: [ai-agent, contributor]
language: nl
last_updated: 2026-05-03
when_to_read: "When adding client-side state mutations that need optimistic UI and rollback."
---
# Patroon: Zustand optimistische update + rollback
Gebruik dit patroon bij elke dnd-kit `onDragEnd` handler.