Skip to main content

wrdn-effect-atom-reactivity-keys

Add reactivityKeys to effect-atom write mutation calls. Use when lint flags a useAtomSet mutation call that mutates data without invalidation keys.

Quellinformationen

Repository
UsefulSoftwareCo/executor
Letzte Quellaktivität
5. Mai 2026 um 23:06
Erkannte Sprache von SKILL.md
Englisch
Sterne
4.188
Forks
371

Installationsoptionen

Standardmäßig ist der Prompt ausgewählt, der zuerst die Quelle prüft. Sie können zu einem direkten Befehl wechseln oder eine lokale Kopie herunterladen.

Quelldateien prüfen

Lesen Sie SKILL.md und alle von SkillsMP angezeigten Begleitdateien, bevor Sie sich für eine Installation entscheiden.

SKILL.md wird angezeigt

SKILL.md
Quellanweisungen · Schreibgeschützte Vorschau
name
wrdn-effect-atom-reactivity-keys
description
Add reactivityKeys to effect-atom write mutation calls. Use when lint flags a useAtomSet mutation call that mutates data without invalidation keys.
allowed-tools
Read Grep Glob Bash
Effect-atom write mutations must say which reads they invalidate. ## Fix Shape - Find the `useAtomSet(...)` write mutation call. - Add `reactivityKeys` to the mutation payload at the call site. - Use the narrowest keys that cover the rows/lists affected by the write. - Keep read-only probe/preview OAuth flows out of this pattern. - If the mutation should update UI immediately, check whether `wrdn-effect-atom-optimistic` also applies. ## Good ```ts await updateSource({ params: { scopeId, sourceId }, payload, reactivityKeys: [["sources", scopeId]], }); ```
Auf GitHub ansehen