Browse Source

bug: moved createMemo down

David Hill 1 month ago
parent
commit
704276753b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/app/src/pages/layout.tsx

+ 1 - 1
packages/app/src/pages/layout.tsx

@@ -75,7 +75,6 @@ export default function Layout(props: ParentProps) {
   )
 
   const pageReady = createMemo(() => ready())
-  const layoutReady = createMemo(() => layout.ready())
 
   let scrollContainerRef: HTMLDivElement | undefined
   const xlQuery = window.matchMedia("(min-width: 1280px)")
@@ -88,6 +87,7 @@ export default function Layout(props: ParentProps) {
   const globalSDK = useGlobalSDK()
   const globalSync = useGlobalSync()
   const layout = useLayout()
+  const layoutReady = createMemo(() => layout.ready())
   const platform = usePlatform()
   const server = useServer()
   const notification = useNotification()