#TypeError Cannot read properties of null (reading 'useState')

5 messages · Page 1 of 1 (latest)

small sinew
#

I believe it may be something related to server & client

small sinew
#

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

frail widget
#

Are u using windows?

#

I believe the error is common with all windows users

timid radish
#

did you mark your component as "use client"?