Zum Inhalt springen
Kitbay
Skill

frontend-large-feature-architecture

NOASSERTIONAktualisiert am 11. Nov. 202637.296GitHub-Sterne

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.

Was der Skill vermittelt

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.

Funktionen

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