Race condition on Node.js SSR renderer? #114
Unanswered
benoitv-code
asked this question in
Q&A
Replies: 2 comments 2 replies
-
Hey @benoitv-code, sorry for the late reply. Have you experienced this? If so, I'm guessing that would explain it. |
Beta Was this translation helpful? Give feedback.
2 replies
-
I have been experiencing this race condition and it has been hell! Any idea on how to fix it? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi! I am looking into integrating internalization in Astro Node.js standalone SSR, and I've had a look at astro-i18next.
Looking at the implementation, there is something I don't understand (but maybe I got something wrong, if so, please let me know what I missed 🙏):
changeLanguage()
and importingt
from"i18next"
changeLanguage
from"i18next"
Due to this, it seems that a call to
changeLanguage()
could affect other Astro renderings happening in parallel (which could result in part of the page / server-side components being rendered with another language).What do you think? Do you think it would be a limitation when using the Node.js renderer? (cc @yassinedoghri)
Beta Was this translation helpful? Give feedback.
All reactions