I create a simple demo for this issue. https://stackblitz.com/edit/nuxt-starter-nsqfvz?file=pages/index.vue
I use scrollTrigger in gsap.matchMedia(),
1. if I add the "pin" in home page (pages/index.vue),
2. and then go to other pages (pages/page2.vue)
3. resize with different breakpoint
it will show this kind of error,
Uncaught TypeError: trigger.revert is not a functio
After I back to the home page, the scrollTrigger will not work anymore.
And seems the scrollTrigger should be killed in "onUnmounted" ?
Thank you~~~