stephane-monnot / react-vertical-timeline

Vertical timeline for React.js
https://stephane-monnot.github.io/react-vertical-timeline/
MIT License
1.07k stars 158 forks source link

Issue with setting up intersection observer #85

Closed alexcamerondev closed 3 years ago

alexcamerondev commented 3 years ago

I cannot find a good example of how you incorporate the intersection observer into your component. I am getting the error below by default without adding an intersection observer.

Have reviewed: https://github.com/thebuilder/react-intersection-observer and cannot seem the best fit for the timeline component

Error: Warning: Cannot update a component (VerticalTimelineElement) while rendering a different component (InView). To locate the bad setState() call inside InView, follow the stack trace as described in https://fb.me/setstate-in-render

alexcamerondev commented 3 years ago

Issue already opened and fixed in #84