Handling RSC errors
Unanswered
Cape horse mackerel posted this in #help-forum
Cape horse mackerelOP
Hello guys.
I'm trying to refresh a react server component that threw an error, however I have a specific usecase.
In this video https://www.youtube.com/watch?v=idEL0dv2V1A Ryan explains how it should work with
Here https://github.com/bojanraguz1992/nextjs-error-reset-test is the reproduced issue.
So everything works fine when the
TLDR;
I can't reset/refresh the RSC that throws an error with clicking on a link to the route that throws an error.
Any idea?
Thanks in advance 🙂
I'm trying to refresh a react server component that threw an error, however I have a specific usecase.
In this video https://www.youtube.com/watch?v=idEL0dv2V1A Ryan explains how it should work with
startTransition, I've added that part also within my code and I can't refresh the error through the navbar link.Here https://github.com/bojanraguz1992/nextjs-error-reset-test is the reproduced issue.
So everything works fine when the
reset button is clicked, but what in a case when the user gets an error and try to click on the same route within navbar?TLDR;
I can't reset/refresh the RSC that throws an error with clicking on a link to the route that throws an error.
Any idea?
Thanks in advance 🙂