expo+57.0.27.patch 683 B

123456789101112131415161718192021
  1. diff --git a/node_modules/expo/src/async-require/hmr.ts b/node_modules/expo/src/async-require/hmr.ts
  2. index bd226af..467e776 100644
  3. --- a/node_modules/expo/src/async-require/hmr.ts
  4. +++ b/node_modules/expo/src/async-require/hmr.ts
  5. @@ -16,6 +16,7 @@ import {
  6. getFullBundlerUrl,
  7. handleCompileError,
  8. hideLoading,
  9. + reload,
  10. resetErrorOverlay,
  11. showLoading,
  12. } from './hmrUtils';
  13. @@ -317,7 +318,7 @@ function setHMRUnavailableReason(reason: string) {
  14. function registerBundleEntryPoints(client: MetroHMRClient | null) {
  15. if (hmrUnavailableReason != null) {
  16. // "Bundle Splitting – Metro disconnected"
  17. - window.location.reload();
  18. + reload();
  19. return;
  20. }