diff --git a/src/plugins/networking.ts b/src/plugins/networking.ts index 9a0c9433..854b6048 100644 --- a/src/plugins/networking.ts +++ b/src/plugins/networking.ts @@ -76,7 +76,7 @@ export default (pluginConfig: NetworkingOpti // fetch and clear the request data from the cache const rid = xhr._trackingName - const cachedRequest = requestCache[rid] || {} + const cachedRequest = requestCache[rid] || { xhr } requestCache[rid] = null // assemble the request object @@ -112,7 +112,7 @@ export default (pluginConfig: NetworkingOpti } // send this off to Reactotron - ;(reactotron as any).apiResponse(tronRequest, tronResponse, stopTimer()) // TODO: Fix + ;(reactotron as any).apiResponse(tronRequest, tronResponse, stopTimer ? stopTimer() : null) // TODO: Fix } // can we use the real response?