#TypeError Cannot read properties of null (reading 'useState')
5 messages · Page 1 of 1 (latest)
I was able to get it working by moving the useIsAtTopDocument function into the header file. However, I'm still searching for a solution because I would like this function to be in its own file and not in the header file
did you mark your component as "use client"?