Перейти к содержанию
Skillpedia
Сайты и интерфейсы (фронтенд)29k · #9821

migrate-v8-to-v9

Что он делает

Этот скилл ведет обновление проекта Preact с TanStack Table версии 8 до версии 9. Он нужен разработчикам, которым нужен понятный чек-лист для измененного кода.

Когда использовать

  • ✓Когда ваше приложение Preact все еще импортирует старый хук таблицы в стиле React и требует обновления.
  • ✓Когда вы обновляете проект Preact, для Table v9 которого нужен Preact 10 или новее.
  • ✓Когда состояние таблицы или отрисовка ломаются после перехода на Table v9.

Ссылка на скилл

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

Скопируйте и вставьте её в ваш ИИ (Claude, ChatGPT или Cursor) с просьбой следовать инструкциям.

Как использовать

Самый простой способ: скопируйте сообщение и вставьте его в свой ИИ. Он прочитает скилл и выполнит инструкции.

Готовое сообщение для вставки

Используй этот скилл, чтобы помочь мне: https://github.com/TanStack/table/blob/main/packages/preact-table/skills/migrate-v8-to-v9/SKILL.md Прочитай файл SKILL.md по этой ссылке и следуй его инструкциям в моей задаче.
Хотите, чтобы ваш ИИ сам находил такие скиллы?Установите бесплатный MCP Skillpedia: одна строка, и перед каждой задачей он ищет среди 15 000+ скиллов.Установить за 1 минуту →

Пример запроса к вашему ИИ

“Мое приложение Preact использует TanStack Table v8. Помоги обновить его до v9.”

5 новых скиллов в неделю. 1 минута чтения.

Как это работает

Скилл дает чек-лист аудита измененного кода и указывает на подробные справочные заметки по каждому изменению, чтобы не пропустить важные шаги.

Технический текст (оригинальный SKILL.md)

Оригинальный текст автора на английском, прямо с GitHub.

Preact v8-to-v9 migration checklist

Before starting, run intent load @tanstack/table-core#migrate-v8-to-v9. Audit its entire shared checklist and read the detailed core mappings for APIs present in the application. This checklist adds the Preact-specific changes.

Framework prerequisite: Preact 10 or newer (preact >=10).

Adapter audit

  • Replace React-adapter imports and useReactTable with native @tanstack/preact-table and useTable.
  • Remove compat aliases that existed only for Table. Preserve aliases still required by other libraries, including a React Virtual integration.
  • Keep model inputs stable and configure explicit features/row-model slots; complete the shared core checklist.
  • Use selected table.state, table.Subscribe, or Preact Store subscriptions; snapshots alone do not rerender consumers.
  • Pair controlled slices with callbacks, or supply stable atoms from @tanstack/preact-store; remove global onStateChange.
  • Use native Preact FlexRender components. Adopt tableOptions or createTableHook only for repeated app conventions.

Load the affected details

When the audit finds old Preact construction, state, rendering, or app-hook code, read adapter migration details before editing it. For a replacement render scaffold, read getting started. For controlled or stale state after migration, read table state.

Shared pinning, sizing, sorting, selection, prototype-method, type, and registry changes stay in the core migration references. Renaming useReactTable alone does not complete the migration.

Verify the migration

  • Type-check against the installed v9 adapter and exercise every enabled client/manual feature flow.
  • Verify external state writes, reactive data replacement, and the framework rendering paths changed above.
  • Complete the core checklist, including layout and selection behavior when those features are used.
  • Replace temporary stockFeatures when the target is explicit feature tree-shaking.

API discovery

Inspect node_modules/@tanstack/preact-table/dist/index.d.ts and the exported adapter declarations. Use node_modules/@tanstack/table-core/dist/index.d.ts for shared APIs.

Частые вопросы

Какая версия Preact нужна?

Скилл говорит, что для Table v9 нужен Preact 10 или новее.

Удаляет ли он старый код совместимости?

Он советует удалить алиасы, которые существовали только для таблицы, но оставить те, которые нужны другим библиотекам.

Покрывает ли этот чек-лист все изменения?

Нет. Он охватывает изменения, специфичные для Preact, и советует также следовать общему чек-листу миграции ядра.

Подробности

Оригинальное описание автора

Migrate preact 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
Место в рейтинге
#9821
Лицензия
MIT
Обновлён
21.10.2026

Полезен ли этот скилл?

0

Войдите , чтобы голосовать.

Комментарии

  • …

Другие скиллы из этого репозитория

Похожие скиллы