Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Nov 8, 2022. It is now read-only.

Commit5f15140

Browse files
committed
refactor(GlobalLayout): make ErrorPage dynamic
1 parent5aa8981 commit5f15140

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

‎src/containers/GlobalLayout/dynamic.js‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,10 @@ export const Footer = dynamic({
2727
loading:()=><div/>,
2828
ssr:false,
2929
})
30+
31+
exportconstErrorPage=dynamic({
32+
loader:()=>import('@/components/ErrorPage'),
33+
// eslint-disable-next-line react/display-name
34+
loading:()=><div/>,
35+
ssr:false,
36+
})

‎src/containers/GlobalLayout/index.js‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@ import ThemeWrapper from '@/containers/ThemeWrapper'
2020

2121
importHeaderfrom'@/containers/Header'
2222
importSidebarfrom'@/containers/Sidebar'
23-
importErrorPagefrom'@/components/ErrorPage'
24-
import{Doraemon,Preview,ErrorBox,Footer}from'./dynamic'
23+
import{Doraemon,Preview,ErrorBox,Footer,ErrorPage}from'./dynamic'
2524

2625
importSEOfrom'./SEO'
2726

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp