本文へスキップ
Kitbay
スキル

frontend-large-feature-architecture

NOASSERTION2026年11月11日 更新37,296GitHubスター

A contributor skill in the Langfuse repository for structuring large, state-heavy parts of its React frontend, such as virtualised lists, big tables, row selection and fast-changing state.

スキルの内容

A contributor skill in the Langfuse repository for structuring large, state-heavy parts of its React frontend, such as virtualised lists, big tables, row selection and fast-changing state. It asks for rendering to be split from logic, values to be derived during render instead of in effects, editable state to be seeded only after data loads, user workflows to live in plain functions outside components, and component splits to be tried before memoisation. Server state stays in tRPC and React Query, route state in router hooks, and fast feature state in a per-mount local Zustand store, with global stores kept for state shared across features. Legacy features should move toward this model when touched.

できること

  • Split rendering from data and actions
  • Place feature state in local Zustand stores
  • Avoid effects for derived values
  • Migrate legacy controller components