跳到正文
cccskills
免费在 GitHub 公开

ngrx

Use when implementing or modifying NgRx state management in Angular applications, especially state slices, events, reducers, effects, selectors, and store registration.

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(11)

  • SKILL.md2.2 KB
  • ngrx-skill.jpg300.6 KB
  • references/architecture.md1.4 KB
  • references/consuming-observable-data-sources.md2.3 KB
  • references/effects.md8.6 KB
  • references/reducers.md1.1 KB
  • references/router-store.md3.7 KB
  • references/selectors.md2.4 KB
  • references/state-modeling.md2.0 KB
  • references/state-slice.md6.9 KB
  • references/store.md1.3 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

NgRx

Use this skill for NgRx state management work in Angular applications.

General

  • Immutable updates: always update state immutably. Re-create objects and arrays when they change, never mutate them at any level of nesting. Prefer the JavaScript ... spread operator and immutable array methods such as map(), filter(), and reduce().

References

  • For the state management architecture and read/write boundaries, read architecture.md.
  • For state serializability, persistent state, client state, transient state, local UI state, and error modeling, read state-modeling.md.
  • For registering and configuring runtime checks for the global store, read store.md.
  • For creating state slices, sharing existing state slices between isolated lazy features by extracting them to core, and splitting state slices, read state-slice.md.
  • For creating or changing selectors, consuming state in container components, and testing selectors, read selectors.md.
  • For implementing reducers, handling events in isolated handlers versus a single handler, and testing reducers, read reducers.md.
  • For side effects such as backend requests, navigation, deep linking, reflecting and consuming state from the URL, scrolling, loading data based on URL path parameters, and testing effects, read effects.md.
  • For reading router state with NgRx router-store, registering router-store, or creating router selector factories, read router-store.md.
  • For consuming observable data sources, for example from services outside our control, and exposing the data through selectors so it is composable with the rest of the application state, read consuming-observable-data-sources.md.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Use when designing, reviewing, refactoring, or enforcing Angular application architecture with isolated lazy features, eager core/layout, reusable ui/pattern architecture building blocks, one-way dependency graphs, eslint-plugin-boundaries rules, or folder placement decisions. This skill takes precedence over angular-developer when architecture rules conflict with general Angular advice.

中文简介正在准备中。当前显示原文说明。

angular-experts-io/ax-skills142026年5月21日 更新

查看 angular-experts-io 的全部技能

报告此技能的问题