Skip to content

feat: optimize GraphQL with React Context data sharing + reduce TTL t…#222

Merged
Dev-Moulin merged 2 commits intomainfrom
feat/graphql-data-context-optimization
Feb 16, 2026
Merged

feat: optimize GraphQL with React Context data sharing + reduce TTL t…#222
Dev-Moulin merged 2 commits intomainfrom
feat/graphql-data-context-optimization

Conversation

@Dev-Moulin
Copy link
Owner

…o 2min

Reduce HTTP queries ~55% when opening founder panels by sharing homepage data via FoundersDataContext instead of each hook launching its own queries.

  • Enrich homepage queries (+11 fields on proposals, +4 on deposits)
  • Create FoundersDataContext + Provider wrapping useFoundersForHomePage
  • Migrate 6 hooks to read from Context (0 network queries)
  • Only tags + user positions still fetch from network
  • Reduce cache TTL from 5min to 2min for fresher data

…o 2min

Reduce HTTP queries ~55% when opening founder panels by sharing homepage
data via FoundersDataContext instead of each hook launching its own queries.

- Enrich homepage queries (+11 fields on proposals, +4 on deposits)
- Create FoundersDataContext + Provider wrapping useFoundersForHomePage
- Migrate 6 hooks to read from Context (0 network queries)
- Only tags + user positions still fetch from network
- Reduce cache TTL from 5min to 2min for fresher data
@Dev-Moulin Dev-Moulin merged commit 22c56b2 into main Feb 16, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant