返回 Skill 列表
extension
分类: 开发与工程无需 API Key

TCA Destroyer

从Leavn中移除TCA(可组合架构)代码 - 删除reducers,迁移到@Observable ViewModels,移除依赖

person作者: jakexiaohubgithub

TCA Destroyer

Eliminate TCA from codebase:

  1. Find TCA code:

    • *Feature.swift files
    • Reducer protocols
    • Store/ViewStore
    • Dependencies from TCA
  2. Migration path:

    • Extract business logic
    • Create @Observable ViewModel
    • Replace Store with ViewModel
    • Update views
  3. Delete:

    • Remove TCA imports
    • Delete Feature files
    • Clean Dependencies

Use when: TCA removal, modernizing architecture, deprecating legacy patterns