mirror of
https://github.com/status-im/react-native.git
synced 2025-02-27 00:20:31 +00:00
Clear cache entry when calling multiRemove
Reviewed By: javache Differential Revision: D2560487 fb-gh-sync-id: 4d2c192cc659f118fd5667da2a029457328eae9f
This commit is contained in:
parent
02e39719c2
commit
c76c22249d
@ -382,6 +382,7 @@ RCT_EXPORT_METHOD(multiRemove:(NSArray *)keys
|
||||
if ( _manifest[key] == (id)kCFNull) {
|
||||
NSString *filePath = [self _filePathForKey:key];
|
||||
[[NSFileManager defaultManager] removeItemAtPath:filePath error:nil];
|
||||
[RCTGetCache() removeObjectForKey:key];
|
||||
}
|
||||
[_manifest removeObjectForKey:key];
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user