-
Notifications
You must be signed in to change notification settings - Fork 74
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
Ensure RelativeTime
component's text representation is client side computed
#422
Comments
RelativeTime
component's text representation is client side computed
Hey @rithviknishad , |
Hey @rithviknishad, I'm encountering an issue with my project where the website looks different on the live version compared to my localhost setup. Live Version:Localhost Version:As you can see, there are discrepancies in the appearance. Could you help me identify the root cause and figure out a solution to make both versions consistent? |
You mean the data present in both is different? Or the layout? |
Both things are different in live version and in localhost |
data being different is likely because your local data-repo is outdated. layout, I don't see any difference. |
Hey @rithviknishad , |
When relative time is rendered in an statically generated route, the relative value is no longer correct as it does not change based on the time of the request.
Solution:
Relative time to be a client component, and representable relative time text to be computed at client side
The text was updated successfully, but these errors were encountered: