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:
parent
ffc697b241
commit
7f777ed5b3
4 changed files with 4 additions and 4 deletions
|
@ -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"));
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -15,7 +15,7 @@ import {
|
|||
useColorModeValue,
|
||||
useTheme,
|
||||
} from "@chakra-ui/react";
|
||||
import loadable from "@loadable/component";
|
||||
import { loadable } from "../util";
|
||||
|
||||
import {
|
||||
getVisibleLayers,
|
||||
|
|
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue