Skip to content

Extract function detail data fetching into function-data.server.ts#6181

Draft
simeonlee wants to merge 1 commit intosimeonlee/variant-link-default-fnfrom
simeonlee/fn-detail-extract-data
Draft

Extract function detail data fetching into function-data.server.ts#6181
simeonlee wants to merge 1 commit intosimeonlee/variant-link-default-fnfrom
simeonlee/fn-detail-extract-data

Conversation

@simeonlee
Copy link
Member

Summary

  • Extracts the monolithic fetchFunctionDetailData into 5 separate, typed fetch functions: variants, experimentation, throughput, metrics, inferences
  • Creates function-data.server.ts with individual fetch functions and their typed return types
  • A combined wrapper (fetchAllFunctionDetailData) preserves the existing single-Suspense behavior
  • No rendering or behavioral changes — pure data layer extraction refactor

Part 2 of the function detail page streaming refactor (split from #6082). Stacks on #6180.

Move the monolithic fetchFunctionDetailData into 5 separate, typed fetch
functions (variants, experimentation, throughput, metrics, inferences).
A combined wrapper preserves the existing single-Suspense behavior.

No rendering or behavioral changes — pure data layer extraction.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant