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.

来源信息

仓库
UsefulSoftwareCo/executor
最近来源活动
2026年5月5日 23:06
检测到的 SKILL.md 语言
英语
星标
4,000
分支
336

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
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]], }); ```
在 GitHub 查看