Chuyển đến nội dung
Skillpedia
Website và giao diện (frontend)29k · #9809

migrate-v8-to-v9

Skill này làm gì

Skill này hướng dẫn nâng cấp một dự án Angular từ TanStack Table phiên bản 8 lên phiên bản 9. Skill dành cho lập trình viên cần danh sách kiểm tra cho các thiết lập và mã hiển thị đã thay đổi.

Khi nào nên dùng

  • ✓Khi ứng dụng Angular của bạn vẫn dùng hàm createAngularTable cũ và cần được cập nhật.
  • ✓Khi bạn nâng cấp dự án Angular lên Angular 19 trở lên để dùng TanStack Table v9.
  • ✓Khi trạng thái hoặc hiển thị bảng bị lỗi sau khi bạn chuyển sang Table v9.

Liên kết skill

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

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/TanStack/table/blob/main/packages/angular-table/skills/migrate-v8-to-v9/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Ứng dụng Angular của tôi đang dùng TanStack Table v8. Bạn có thể giúp tôi nâng cấp lên v9 từng bước không?”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Skill đưa ra một danh sách kiểm tra các mã đã thay đổi, như thay createAngularTable bằng injectTable, và chỉ đến các ghi chú tham chiếu chi tiết cho từng thay đổi.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

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/.

Câu hỏi thường gặp

Cần phiên bản Angular nào?

Skill cho biết cần Angular 19 trở lên cho Table v9.

Skill này có bao quát mọi thay đổi của thư viện không?

Nó bao quát các thay đổi riêng của Angular và tham chiếu đến hướng dẫn di chuyển cốt lõi dùng chung cho phần còn lại.

Nó có giúp được với các lỗi trạng thái sau khi nâng cấp không?

Có. Skill chỉ đến hướng dẫn trạng thái bảng để sửa trạng thái phản ứng.

Chi tiết

Mô tả gốc của tác giả

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

Độ phổ biến

Sao GitHub
29k
Vị trí xếp hạng
#9809
Giấy phép
MIT
Cập nhật
21/10/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự