DEV Community

Discussion on: Top 6 reasons Gatsby incremental builds can be slow (and how to make them fast)

Collapse
 
sashrika profile image
Sashrika Waidyarathna

Thanks for the info Matt. Could you please elaborate the point no. 4? What sort of time stamp are you highlighting here? Are u asking to do any time calculations on the client side?

Collapse
 
ascorbic profile image
Matt Kane

I'm saying that anything which displays the current time or date should be done only on the client (so in a useEffect hook, for example), because otherwise it will mean that the page is different on every build so can never be cached.