Explorar o código

fixed flickering

yuya-o %!s(int64=3) %!d(string=hai) anos
pai
achega
1fc172acb3
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      packages/app/src/components/Sidebar.tsx

+ 1 - 1
packages/app/src/components/Sidebar.tsx

@@ -58,7 +58,7 @@ const GlobalNavigation = () => {
 
 const SidebarContentsWrapper = () => {
   const StickyStretchableScroller = dynamic<StickyStretchableScrollerProps>(() => import('./StickyStretchableScroller')
-    .then(mod => mod.StickyStretchableScroller), { ssr: false });
+    .then(mod => mod.StickyStretchableScroller), { ssr: false, loading: () => <SidebarSkelton /> });
   const SidebarContents = dynamic(() => import('./Sidebar/SidebarContents')
     .then(mod => mod.SidebarContents), { ssr: false, loading: () => <SidebarSkelton /> });
   const { mutate: mutateSidebarScroller } = useSidebarScrollerRef();