getServerAuthSession at any place crashes my app. 5000+ errors per second!
Below, I have my server component for rendering a hamburger menu based on whether the user is authenticated.
When I check the Network tab,
main-app.js
stays in an endless waterfall of downloading content.
When I check the Console tab, this error is raised infinitely. It raises this error around 5.000 per second!
The server console seems fine with no erros at all.
Could anyone please explain to me what's going on or what I'm implementing wrong?10 Replies
Just out of curiosity 5.0 or 5,000?
What do you mean? Might've made a mistake while writing haha. But it raises around 5 thousand errors per second.
Hmm I've somehow fixed it. I guess because I was importing this server component into a client component..
read the docs and it said you should give server components as props to client components
that worked
Now I'm only left with this TS error
Defeats the server auth a bit no?
Not damn
I'm new too ^^' sorry if it wasn't helpfull
Dont worry, I'm no expert either haha
Bro I am just trying to suck less
Same
Is this in the app directory or pages directory?