From 65f50fab973b5b943ec54ce5af2fad3d0fd41dac Mon Sep 17 00:00:00 2001 From: Cody Olsen Date: Thu, 21 Nov 2024 11:48:26 +0100 Subject: [PATCH] Update __root.tsx --- tanstack-start/app/routes/__root.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tanstack-start/app/routes/__root.tsx b/tanstack-start/app/routes/__root.tsx index 347ea99..99ada68 100644 --- a/tanstack-start/app/routes/__root.tsx +++ b/tanstack-start/app/routes/__root.tsx @@ -32,12 +32,11 @@ export const Route = createRootRoute({ ), loaderDeps: ({search: {lastLiveEventId}}) => ({lastLiveEventId}), loader: ({deps}) => getTheme({data: deps}), - head: ({loaderData}) => ({ + head: () => ({ meta: [ {charSet: 'utf-8'}, {name: 'viewport', content: 'width=device-width, initial-scale=1'}, {title: 'TanStack Start Starter'}, - {name: 'theme-color', content: loaderData?.data?.background || '#000'}, ], links: [ {rel: 'stylesheet', href: appCss}, @@ -70,6 +69,8 @@ function RootDocument({children}: Readonly<{children: ReactNode}>) { > + {/* iOS Safari struggles with picking up on changes to this tag */} + {children}