I would like to display more than just one sentence(i.e. Error title, error description and error cause).
I tried to extend basic Error class and add there two custom properties, but I can’t access them in error.tsx file. Any ideas how to deal with it?
2
Answers
Check this link
If you have no error.tsx(js), just create the file (error.js) in the
app
folder with the following contentUpdate:
Dont forget to instal useSWR
you should try separate your data with signs or to use JSON.Stringify, I give you both examples:
OPCION 1 :
OPCION 2 : JSON.parce and JSON.stringify