Skip to content

Commit

Permalink
Untrack HTTP responses when processed by IResponseHandler (#12378)
Browse files Browse the repository at this point in the history
* Untrack response when using response handler

* Change files
  • Loading branch information
JunielKatarn authored Nov 14, 2023
1 parent 60b7883 commit ea58fe0
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "prerelease",
"comment": "Untrack HTTP responses when processed by IResponseHandler",
"packageName": "react-native-windows",
"email": "julio.rocha@microsoft.com",
"dependentChangeType": "patch"
}
2 changes: 1 addition & 1 deletion vnext/Shared/Networking/WinRTHttpResource.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,7 @@ WinRTHttpResource::PerformSendRequest(HttpMethod &&method, Uri &&rtUri, IInspect
if (self->m_onComplete) {
self->m_onComplete(reqArgs->RequestId);
}
co_return;
co_return self->UntrackResponse(reqArgs->RequestId);
}
}

Expand Down
1 change: 1 addition & 0 deletions vnext/Shared/Shared.vcxitems.filters
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,7 @@
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\runtimescheduler\RuntimeSchedulerCallInvoker.cpp" />
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\runtimescheduler\Task.cpp" />
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\utils\CoreFeatures.cpp" />
<ClCompile Include="$(MSBuildThisFileDirectory)..\Microsoft.ReactNative\Fabric\platform\react\renderer\graphics\PlatformColorUtils.cpp" />
</ItemGroup>
<ItemGroup>
<Filter Include="Source Files">
Expand Down

0 comments on commit ea58fe0

Please sign in to comment.