From 01ecd43c625dad78b1b11ce22f279d74e69a5b33 Mon Sep 17 00:00:00 2001 From: Jean Lauliac Date: Wed, 7 Jun 2017 11:14:29 -0700 Subject: [PATCH] FBGlobalTransformCache: retry on server-side errors Reviewed By: cpojer Differential Revision: D5200923 fbshipit-source-id: 9fd0d65e8d663437d27a3837580b07e386f70120 --- packages/metro-bundler/src/lib/GlobalTransformCache.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/metro-bundler/src/lib/GlobalTransformCache.js b/packages/metro-bundler/src/lib/GlobalTransformCache.js index e8798dd1..40113584 100644 --- a/packages/metro-bundler/src/lib/GlobalTransformCache.js +++ b/packages/metro-bundler/src/lib/GlobalTransformCache.js @@ -288,7 +288,7 @@ class URIBasedGlobalTransformCache { * There may be other types of error we'd want to retry for, but these are * the ones we experienced the most in practice. */ - static shouldRetryAfterThatError(error: Error): boolean { + static shouldRetryAfterThatError(error: mixed): boolean { return ( error instanceof FetchError && error.type === 'request-timeout' || ( error instanceof FetchFailedError &&