Did error.cause get removed?
Unanswered
Boreal Chickadee posted this in #help-forum
Boreal ChickadeeOP
Looks like there was a way to pass a cause to an error and serialize it to the client error.js but that doesn't seem to exist anymore.
https://github.com/vercel/next.js/pull/73665
Is there any way to pass information from a server component to an error.js file?
https://github.com/vercel/next.js/pull/73665
Is there any way to pass information from a server component to an error.js file?
10 Replies
@Teut2711 https://nextjs.org/docs/app/getting-started/error-handling#server-functions
Boreal ChickadeeOP
That’s from server actions
I’m asking about from server components
cookies?
Boreal ChickadeeOP
Server components just allow you to return a string. I’d like to throw an error inside of a custom function
hmm
ya thats the only way i think
@Teut2711 cookies?
Boreal ChickadeeOP
I guess that’s possible, but super hacky
will check in free time and let you know
Boreal ChickadeeOP
Thanks