Skip to content

Commit

Permalink
stop serializing responses
Browse files Browse the repository at this point in the history
  • Loading branch information
ryansolid committed Oct 17, 2023
1 parent 2967fc2 commit 2258f48
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/start/data/createRouteData.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ export function createRouteData<T, S = true>(
} else {
setTimeout(() => handleResponse(response), 0);
}
return;
}
return response;
} catch (e: any | Error) {
Expand All @@ -97,7 +98,7 @@ export function createRouteData<T, S = true>(
} else {
setTimeout(() => handleResponse(e as Response), 0);
}
return e;
return;
}
throw e;
}
Expand Down

0 comments on commit 2258f48

Please sign in to comment.