Data is still undefined even after declaring isPending and isError in React Query V5
Hello, I just recently upgraded to React Query V5 and I noticed that the behavior of
Previously, I was able to define them as guard clauses and
Now I get the following message:
Is this behavior working as intended or am I doing something wrong?
Any help would be greatly appreciated.
isPending and isError has changed. Previously, I was able to define them as guard clauses and
data would always be defined afterwards:Now I get the following message:
Is this behavior working as intended or am I doing something wrong?
Any help would be greatly appreciated.