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.
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
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 insideInView
, follow the stack trace as described in https://fb.me/setstate-in-render