fix: resolve react error 310 and i18n issues#2
Merged
creatorcluster merged 1 commit intomainfrom Jul 14, 2025
Merged
Conversation
This commit resolves two issues: 1. **React Error #310:** This error was caused by conditional rendering of hooks. I moved the i18n initialization from `App.tsx` to `main.tsx` to ensure that the `App` component is only rendered after the i18n library is fully initialized. 2. **i18n Translation Issues:** After moving the i18n initialization, the translation keys were being displayed instead of the translated text. This was because the `i18n` instance was not being properly passed to the `I18nextProvider`. I moved the `I18nextProvider` to `main.tsx` and the `i18n` instance is now correctly passed to it.
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
creatorcluster
pushed a commit
that referenced
this pull request
Jan 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This commit resolves two issues:
React Error #310: This error was caused by conditional rendering of hooks. I moved the i18n initialization from
App.tsxtomain.tsxto ensure that theAppcomponent is only rendered after the i18n library is fully initialized.i18n Translation Issues: After moving the i18n initialization, the translation keys were being displayed instead of the translated text. This was because the
i18ninstance was not being properly passed to theI18nextProvider. I moved theI18nextProvidertomain.tsxand thei18ninstance is now correctly passed to it.