Closed jasoncavanaugh closed 1 year ago
In many places in the frontend, we have code that looks like
const { data: driversData, status: driversStatus, error: driversError } = useQuery(...);
I think this should be changed to something more like
const driversQuery = useQuery(...);
and then you would access the properties like normal, i.e.
driversQuery.data; //drivers driversQuery.status; //query status driversQuery.error; //thrown errors
In many places in the frontend, we have code that looks like
I think this should be changed to something more like
and then you would access the properties like normal, i.e.