From 7f777ed5b370045dcfc2aa264a6ca0b027d71b0d Mon Sep 17 00:00:00 2001 From: Matchu Date: Thu, 21 Jan 2021 14:34:55 -0800 Subject: [PATCH] Add page-reload recovery to *all* code splitting MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Still getting some chunk load errors in my Sentry reporting! My hunch is these are the culprit. I hooope that after this the errors are pretty much gone! If not, then I'm missing something about what causes these failures… --- src/app/PageLayout.js | 2 +- src/app/WardrobePage/Item.js | 2 +- src/app/WardrobePage/PosePicker.js | 2 +- src/app/WardrobePage/index.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/app/PageLayout.js b/src/app/PageLayout.js index f7b807c..6142ff0 100644 --- a/src/app/PageLayout.js +++ b/src/app/PageLayout.js @@ -1,6 +1,6 @@ import React from "react"; import { Box } from "@chakra-ui/react"; -import loadable from "@loadable/component"; +import { loadable } from "./util"; const GlobalHeader = loadable(() => import("./GlobalHeader")); const GlobalFooter = loadable(() => import("./GlobalFooter")); diff --git a/src/app/WardrobePage/Item.js b/src/app/WardrobePage/Item.js index eaa4939..a7c12e3 100644 --- a/src/app/WardrobePage/Item.js +++ b/src/app/WardrobePage/Item.js @@ -11,7 +11,7 @@ import { } from "@chakra-ui/react"; import { EditIcon, DeleteIcon, InfoIcon } from "@chakra-ui/icons"; import { Link } from "react-router-dom"; -import loadable from "@loadable/component"; +import { loadable } from "../util"; import { ItemCardContent, diff --git a/src/app/WardrobePage/PosePicker.js b/src/app/WardrobePage/PosePicker.js index 68c467d..0f5d914 100644 --- a/src/app/WardrobePage/PosePicker.js +++ b/src/app/WardrobePage/PosePicker.js @@ -15,7 +15,7 @@ import { useColorModeValue, useTheme, } from "@chakra-ui/react"; -import loadable from "@loadable/component"; +import { loadable } from "../util"; import { getVisibleLayers, diff --git a/src/app/WardrobePage/index.js b/src/app/WardrobePage/index.js index d931f9b..d2ed12d 100644 --- a/src/app/WardrobePage/index.js +++ b/src/app/WardrobePage/index.js @@ -1,6 +1,6 @@ import React from "react"; import { useToast } from "@chakra-ui/react"; -import loadable from "@loadable/component"; +import { loadable } from "../util"; import ItemsAndSearchPanels from "./ItemsAndSearchPanels"; import SupportOnly from "./support/SupportOnly";