Skip to content

Error window is not defined in server side rendering #21

Closed
@MekMed

Description

@MekMed

Bug description
Actually, when the component is used on server side rendering, it generate a "window is not defined" error.

Expected behavior
A test for "window" can be added in order to avoid access to this variable if not defined.
To be added in both LazyLoadImage and trackWindowScroll

Technical details:

  • Server Side Rendering? Yes
  • Device Desktop/Smartphone
  • Operating System All
  • Browser All

Thx,

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions