diff --git a/.nx/version-plans/version-plan-1744150643671.md b/.nx/version-plans/version-plan-1744150643671.md new file mode 100644 index 000000000000..20e92db7949c --- /dev/null +++ b/.nx/version-plans/version-plan-1744150643671.md @@ -0,0 +1,6 @@ +--- +react-native-macos: patch +'@react-native-mac/virtualized-lists': patch +--- + +cherry pick "[iOS] Reland: avoid race condition crash in [RCTDataRequestHandler invalidate]" diff --git a/packages/react-native/Libraries/Network/RCTDataRequestHandler.mm b/packages/react-native/Libraries/Network/RCTDataRequestHandler.mm index 6e1cb74eb26c..7e9fc2a20abf 100644 --- a/packages/react-native/Libraries/Network/RCTDataRequestHandler.mm +++ b/packages/react-native/Libraries/Network/RCTDataRequestHandler.mm @@ -38,15 +38,13 @@ - (NSOperation *)sendRequest:(NSURLRequest *)request withDelegate:(id *fileAttributes = [fileManager attributesOfItemAtPath:request.URL.path error:&error]; if (!fileAttributes) { - [delegate URLRequest:strongOp didCompleteWithError:error]; // [macOS] + [delegate URLRequest:strongOp didCompleteWithError:error]; return; } @@ -77,17 +75,16 @@ - (NSOperation *)sendRequest:(NSURLRequest *)request withDelegate:(id