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.

Datos de origen

Repositorio
UsefulSoftwareCo/executor
Última actividad en el origen
5 de mayo de 2026 a las 23:06
Idioma detectado de SKILL.md
inglés
Estrellas
4188
Forks
371

Opciones de instalación

De forma predeterminada está seleccionado el prompt que primero revisa el origen. Puedes cambiar a un comando directo o descargar una copia local.

Revisa los archivos de origen

Lee SKILL.md y los archivos complementarios que muestra SkillsMP antes de decidir si quieres instalarlo.

Mostrando SKILL.md

SKILL.md
Instrucciones de origen · Vista previa de solo lectura
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]], }); ```
Ver en GitHub