Skip to content
Kitbay
Skill

frontend-large-feature-architecture

NOASSERTIONUpdated on Nov 11, 202637,296GitHub stars

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.

What the skill teaches

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.

Capabilities

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