-
Notifications
You must be signed in to change notification settings - Fork 657
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
react-helmet mixing fields during renderStatic #667
Comments
You should look into rendering in isolated contexts, either with Node's built in VM or a library like VM2 (https://github.com/patriksimek/vm2) That will let you render multiple requests concurrently without any issues like the above. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey folks,
I'm running server-side render of the React application. I'm using express for this purposes. The whole server-side render code looks like this:
I feel like this happens because of
react-helmet
uses static fields, I suppose. So, if two requests are being handled in parallel, this fields are being changed chaotically. I looked into thethread-safe
issue via: https://github.com/openameba/react-safety-helmet. Still no luck.Cheers,
Montana Mendy
The text was updated successfully, but these errors were encountered: