Hi there,
Apologies that this is a nextjs question but thought someone must have come across this scenario already.
My question is, do I need to store the 'smoother' instance in some global context in order to use smoother.effects outside of the layout file where Scrollsmoother is instantiated?
I've attached a simple example, where Scrollsmoother instantiated in layout.tsx file but I'd like to use it's effects in a page.tsx file.
It obviously can't use 'smoother' variable in page.tsx as it only exists in layout.tsx.
https://stackblitz.com/edit/stackblitz-starters-ajea61?file=app%2Fpage.tsx
Thank you!