Nice to meet you, this is my first post on this forum. Already found some great stuff that helped me on my way.
The latest few weeks I've been struggling getting GSAP to work (properly) within my React Application, with success! Learning a lot about tweening, timelines & timing within the React ecosystem.
That said, I'm still struggling with the GSDevTools which doesn't seem to work as expected.
Implementing GSDevTools inside the componentDidMount() of my homepage component.
Implementing GSDevTools inside the componentDidMount() of my layout wrapper
Implementing GSDevTools inside the componentDidMount() of my page wrapper
In all the above scenarios the GSDevTools is being called multiple times as my app refreshes after each change.
Would be cool if I could destroy this timeline on unmounting the component, but I am almost sure that would not be the right way to go.
I would be happy to learn how to implement the GSDevTools within the React lifecycle properly.
Do you've got the answer for me or a suggestion to push me in the right direction? Let me know.