re: Top 6 reasons Gatsby incremental builds can be slow (and how to make them fast) VIEW POST


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?


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.

code of conduct - report abuse