Open MaxArtemov opened 11 months ago
https://github.com/ant-design/cssinjs/blob/55d57167648bd916a4fb4b4e48c729c918fb492e/src/hooks/useHMR.ts#L21 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
window
globalThis
typeof window !== undefined
https://github.com/ant-design/cssinjs/blob/55d57167648bd916a4fb4b4e48c729c918fb492e/src/hooks/useHMR.ts#L21 In this line,
window
might be changed toglobalThis
to support hot reloading in ssr, or add a conditiontypeof window !== undefined
to keep it only hmr'ble on client