You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My problem is that in the response, the attributes that are of Array type are being returned as empty arrays. The rest of the object attributes are returned normally. Sometimes, the array data will come in as expected, but most the time it will not. I am using version 4.36.1.
When in fact the preferredDrivers attribute is not empty. I have logged the raw data in the query function and confirmed this. But for some reason the preferredDrivers data returned from useQuery is an empty array (most of the time).
This seems to happen in the other array attributes as well, not just this one.
Wondering if anyone has seen this behavior before or if there is some sort of configuration I am missing here.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello!
I have a query that I am running to fetch data from a Rails API.
It returns data shaped like this:
My problem is that in the response, the attributes that are of Array type are being returned as empty arrays. The rest of the object attributes are returned normally. Sometimes, the array data will come in as expected, but most the time it will not. I am using version 4.36.1.
For example:
I will get a response like:
When in fact the
preferredDrivers
attribute is not empty. I have logged the raw data in the query function and confirmed this. But for some reason thepreferredDrivers
data returned fromuseQuery
is an empty array (most of the time).This seems to happen in the other array attributes as well, not just this one.
Wondering if anyone has seen this behavior before or if there is some sort of configuration I am missing here.
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions