Uses `window` object for the global so won't work in SSR / server context.
Uses
windowobject for the global so won't work in SSR / server context.