Site275 Documents

Declarative Client

Keep clients declarative and presentation-only. The API must return application data in its final render-ready shape, including ordering, filtering, grouping, ranking, normalization, counts, visibility flags, and other derived values. Client code must not interpret or transform application data; it may only map render-ready data to components and manage unavoidable presentation state or browser interactions. When uncertain, move the logic to the API.