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

Docs: Update README.md for React-Router 7 #239

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

timzolleis
Copy link

Hey sergio,

Thanks for the library! While setting it up for RR7, I noticed some changes that are not yet present in the README, so I added them here.

A couple things that were not clear to me though:

  • Does it affect the behavior of the app in any way, if the i18next instance is created in the returned Promise of handleRequest in entry.server.tsx compared to making that function async and creating the instance outside of the promise? As far as I know, it does not - feel free to correct me here.

  • Is the window.requestIdelCallback check still needed? The RR team removed it from the official entry.server.tsx file.

import {isbot} from "isbot";
import type {RenderToPipeableStreamOptions} from "react-dom/server";
import {renderToPipeableStream} from "react-dom/server";
import {createInstance} from "i18next";
import i18next from "./i18next.server";

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo, you are actually referencing it as i18nextServer below

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.

2 participants