© 2026 LinearBytes Inc.
Search posts, tags, users, and pages
mamged
jsian
good job, but I think this will cause an error with SSR because window object is not accessible on the server side code
Chris Bongers
Looking to get into development? As a full-stack developer I guide you on this journey and give you bite sized tips every single day 👊
Very good point yes, in most cases you would already have something in place to handle window defined for the SSR. Forgot to include that in the main article, so thanks for the heads-up.