Replies: 1 comment
-
There is an |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey guys, can you please describe what is the better way to handle errors with using Null Class pattern.
I have this query for instance:
And inside react component using like this:
But the problem, is what during fetching I'm getting
NullAddressobject – awesome, but once the query fails after 3 attempts,datais equal toundefined. I have only one solution for this, but it's not looks very good.I actually didn't find an option for overriding
undefinedvalue (the same asplaceholderDatawhile fetching), am I missing something?Beta Was this translation helpful? Give feedback.
All reactions