跳到正文
Skillpedia
网站与界面(前端)29k · #9809

migrate-v8-to-v9

它能做什么

这项技能指导把 Angular 项目从 TanStack Table 第 8 版升级到第 9 版。适合需要变更后设置和渲染代码检查清单的开发者。

适用场景

  • ✓当你的 Angular 应用仍在使用旧的 createAngularTable 函数,需要升级的时候。
  • ✓当你为了使用 TanStack Table v9 而将 Angular 项目升级到 Angular 19 或更高版本的时候。
  • ✓当你迁移到 Table v9 后,表格状态或渲染出现问题的时候。

技能链接

https://github.com/TanStack/table/blob/main/packages/angular-table/skills/migrate-v8-to-v9/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/TanStack/table/blob/main/packages/angular-table/skills/migrate-v8-to-v9/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“我的 Angular 应用使用的是 TanStack Table v8。你能一步一步帮我升级到 v9 吗?”

每周 5 个新技能,1 分钟读完。

工作原理

它提供一份变更代码的检查清单,例如把 createAngularTable 替换为 injectTable,并为每项变更指向详细的参考说明。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Load intent load @tanstack/table-core#migrate-v8-to-v9 first and audit its entire shared checklist. It owns feature registration, row-model slots, state/reset changes, prototype methods, logical pinning, sizing/resizing, sorting, selection, helpers, and TypeScript mappings.

Framework prerequisites

Angular 19 or newer is required (@angular/core >=19).

Angular migration checklist

  • Replace createAngularTable with injectTable in a valid Angular injection context.
  • Hoist features, columns, and factories outside the signal-tracked initializer.
  • Read state through signal-backed atoms; wire controlled signals with value-or-updater callbacks or stable Angular Store atoms.
  • Import current FlexRender directives, distinguish render functions from component types, and preserve instance-method receivers.
  • Audit repeated options and component registries for the optional createTableHook/injectAppTable path.

Apply the affected mappings

Read adapter-migration when changing construction, rendering, state, or app hooks. Read the relevant core migration references for each affected shared API; this adapter checklist does not replace that audit.

For complete v9 construction examples, read getting-started. For reactive state repairs, read table-state.

Final checks

  • All shared core migration checks and affected mappings have been applied.
  • The framework checklist above passes with the current adapter declarations.
  • Model inputs remain stable and state changes reach their reactive owner.

API discovery

Inspect node_modules/@tanstack/angular-table/dist/types/ for the bundled public declarations. Inspect feature APIs under node_modules/@tanstack/table-core/dist/features/.

常见问题

Table v9 需要哪个 Angular 版本?

这项技能说明,Table v9 需要 Angular 19 或更高版本。

它涵盖库中的每一项变更吗?

它涵盖 Angular 特有的变更,其余内容则指向共享的核心迁移指南。

升级后的状态问题它能帮忙吗?

能,它会指向表格状态指南,帮你修复响应式状态。

详情

作者的原始描述

Migrate angular Table v8 to v9. Audit framework construction, rendering, state, and app hooks, with shared API changes in the core migration skill.

repo: TanStack/table

热度

GitHub 星标
29k
排名
#9809
许可证
MIT
更新时间
2026/10/21

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能