Isomorphic Rendering Locale Issue #410

Closed
opened 2025-08-09 17:16:11 +00:00 by fergalmoran · 0 comments
Owner

Originally created by @DanHarman on 9/20/2017

Is there a recommended approach to setting the locale to match the browser when doing server side rendering? At the moment some of my components use Date.toLocaleDateString() and I get different results in the browser vs the pre-rendered page which invalidates the point of pre-rendering.

*Originally created by @DanHarman on 9/20/2017* Is there a recommended approach to setting the locale to match the browser when doing server side rendering? At the moment some of my components use `Date.toLocaleDateString()` and I get different results in the browser vs the pre-rendered page which invalidates the point of pre-rendering.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/JavaScriptServices#410
No description provided.