Skip to main content
تشغيل أي مهارة في Manus
بنقرة واحدة

undo-redo-patterns

النجوم٢
التفرعات٠
آخر تحديث١٧ يونيو ٢٠٢٦ في ١٤:٢٢

Wire undo/redo support for new mutations. Use when adding any function in src/api/ that writes to the database, when composing multi-step operations that must undo atomically, when binding a new window.api mutation, or when investigating "why didn't my action show up in the undo stack". Covers UndoAction shape, the snapshot-old-state-then-mutate sequence, beginGroup/endGroup for atomic multi-step ops, the mutating() data-changed fan-out via fireDataChanged(), and the relationship between undo and onDataChanged.

التثبيت

التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.

SKILL.md
readonly