Skip to content
This repository was archived by the owner on Dec 6, 2023. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/plugins/networking.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export default <ReactotronSubtype = ReactotronCore>(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
Expand Down Expand Up @@ -112,7 +112,7 @@ export default <ReactotronSubtype = ReactotronCore>(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?
Expand Down