[SSR] During server render, window object is not defined.
aga5tya opened this issue · 1 comments
aga5tya commented
While server rendering the list with default state, the code breaks since window object is directly referenced in the condition for check for requestAnimationFrame.
studentIvan commented
You can get rid of the window object in your code while SSR. (typeof window !== 'undefined')