Client-side Exception Occurred

What's the best way of handling this (nextjs client-side exception)? I've already checked the docs and it recommends error boundaries, which i do understand the reasoning but it's not what i'm looking for If i understand error boundaries correctly, they will render something completely different when you get this client-side errors, what i want however is for the client to render just as is despite the error, 99% of the time anyway, i get these kinds of errors when I try to get a property and it doesn't exist / is null / undefined, in that case, i don't want the entire app to crash, i simply want it to not render whatever is missing So how do i do this?, i.e. just ignore the error and if things are undefined them let them be undefined --- btw, i know the obvious solution is optional chaining, but there are times when types are just so complex that you can't catch every possible null/undefined type
No description
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?