[Need Help] Error.js does not seem to be working as expected
Unanswered
Britannia Petite posted this in #help-forum
Britannia PetiteOP
Hey Everyone! I'm sure this is just my implementation issue, but for me the error.js does not seem to work
The code can be previewed here:
https://stackblitz.com/edit/nextjs-zvrvyy?file=app%2Flayout.js,app%2Ferror.js,app%2Fpage.js
The screenshot shows what I get in the console.
What I'd assume is going to happen once I hit the error boundary and click on try again is to reset and try the fetch again, but that does not seem to be the case? maybe its cached somehow?
Thanks for the help!
The code can be previewed here:
https://stackblitz.com/edit/nextjs-zvrvyy?file=app%2Flayout.js,app%2Ferror.js,app%2Fpage.js
The screenshot shows what I get in the console.
What I'd assume is going to happen once I hit the error boundary and click on try again is to reset and try the fetch again, but that does not seem to be the case? maybe its cached somehow?
Thanks for the help!