developerdizzle/react-virtual-list

[SSR] During server render, window object is not defined.

aga5tya opened this issue · 1 comments

While server rendering the list with default state, the code breaks since window object is directly referenced in the condition for check for requestAnimationFrame.

You can get rid of the window object in your code while SSR. (typeof window !== 'undefined')