ant-design/cssinjs

useHMR throws in SSR when when dev-server hot reloading is enabled

MaxArtemov opened this issue · 0 comments

image

const win = window as any;

In this line, window might be changed to globalThis to support hot reloading in ssr, or add a condition typeof window !== undefined to keep it only hmr'ble on client