Building modern web applications with React Server Components (RSC)
statesetFetch
StatesetReturnOperation
) to ensure end-to-end type safety. The server component (e.g. page.tsx
) can directly call getReturn
, removing the complexity of managing GraphQL queries in individual React components.
lib/stateset
directory, you maintain a single source of truth, minimizing duplication and improving consistency.