Skip to content

Fetch languages server-side to avoid client waterfalls - #4

Draft
maktoufzied wants to merge 1 commit into
saikothasan:mainfrom
maktoufzied:feature/server-side-language-fetching
Draft

Fetch languages server-side to avoid client waterfalls#4
maktoufzied wants to merge 1 commit into
saikothasan:mainfrom
maktoufzied:feature/server-side-language-fetching

Conversation

@maktoufzied

Copy link
Copy Markdown
  • Refactor LanguageShowcase to accept languages as props instead of fetching client-side
  • Pass LANGUAGE_MAP from server component on homepage (no network request needed)
  • Add initialLanguages/initialSurahs props to QuranReader to skip redundant client fetches
  • Fetch languages and surahs server-side in demo page with Promise.all()

- Refactor LanguageShowcase to accept languages as props instead of fetching client-side
- Pass LANGUAGE_MAP from server component on homepage (no network request needed)
- Add initialLanguages/initialSurahs props to QuranReader to skip redundant client fetches
- Fetch languages and surahs server-side in demo page with Promise.all()
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