Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Improve performance when calling hooks like useTranslations in Server Components by making sure we only suspend when i18n config is loaded initially and never for subsequent calls #741

Merged
merged 4 commits into from
Dec 20, 2023

Conversation

amannn
Copy link
Owner

@amannn amannn commented Dec 20, 2023

Copy link

vercel bot commented Dec 20, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
next-intl-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 20, 2023 1:59pm
next-intl-example-app-router ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 20, 2023 1:59pm

@amannn amannn marked this pull request as ready for review December 20, 2023 14:01
@amannn amannn changed the title fix: Improve performance when calling useTranslations in Server Components fix: Improve performance when calling hooks like useTranslations in Server Components by making sure we only suspend when i18n config is loaded initially and never for subsequent calls Dec 20, 2023
@amannn amannn merged commit 4185a72 into main Dec 20, 2023
6 checks passed
@amannn amannn deleted the fix/improve-rsc-perf branch December 20, 2023 14:06
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.

[Docs]: useTranslations() vs getTranslations() for server contexts?
1 participant