Window listener in App Directory
Unanswered
Havana posted this in #help-forum
HavanaOP
Hi all,
I recently switched from page to app directory and I have no idea why the window event listener is not working. I import the client component that should appear on scroll in the page but when I console the window.scrollY it shows 0 on page load then no updates. I searched in the doc and tried some solutions from stack overflow but nothing...
I recently switched from page to app directory and I have no idea why the window event listener is not working. I import the client component that should appear on scroll in the page but when I console the window.scrollY it shows 0 on page load then no updates. I searched in the doc and tried some solutions from stack overflow but nothing...