preloadQuery for server side rendering getting the client component error
Error: createContext only works in Client Components. Add the "use client" directive at the top of the file to use it.
I followed the documentation here:
https://docs.convex.dev/client/react/nextjs/server-rendering
When commenting out the preloadQuery, the page renders properly, so I assume the error can only come from this. Also, the token is properly retrieved from clerck.
Below the code:

