Hey Rodrigo,
thanks for quick answer!
Yeah, this is also my first time trying out astro, but i really liked its performance and a new view transitions feature.
I know, i tried to use useGSAP hook also, but i guess it should work even in useEffect. I dont think the problem here is React.
I created a minimal demo, just with astro components, without react.
You can see, that after first render of the app, scrollSmoother is working well.
after transition to another page, scroll smoother breaks ( you can check that there are no inline styles in body ).
When you instantiate ScrollSmoother outside of the lifecycle function, after transition use is able to scroll, but without scrollSmoother effect.
Link to demo: https://stackblitz.com/edit/github-2hpcon-axifnq?file=src%2Fcomponents%2FLayout.astro,src%2Fpages%2Fabout.astro,src%2Fpages%2Findex.astro,package.json
Thanks for your time!