Add page-reload recovery to *all* code splitting

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…
This commit is contained in:
Emi Matchu 2021-01-21 14:34:55 -08:00
parent ffc697b241
commit 7f777ed5b3
4 changed files with 4 additions and 4 deletions

View file

@ -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"));

View file

@ -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,

View file

@ -15,7 +15,7 @@ import {
useColorModeValue,
useTheme,
} from "@chakra-ui/react";
import loadable from "@loadable/component";
import { loadable } from "../util";
import {
getVisibleLayers,

View file

@ -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";