()
| 101 | } |
| 102 | |
| 103 | export default function AppWithProviders() { |
| 104 | const { theme, starCount, themeOverride } = useLoaderData<LoaderData>(); |
| 105 | |
| 106 | const location = useLocation(); |
| 107 | |
| 108 | // Force dark mode on the homepage |
| 109 | const forceDarkMode = location.pathname === "/"; |
| 110 | |
| 111 | return ( |
| 112 | <ThemeProvider |
| 113 | specifiedTheme={theme} |
| 114 | themeOverride={forceDarkMode ? "dark" : themeOverride} |
| 115 | > |
| 116 | <PreferencesProvider> |
| 117 | <StarCountProvider starCount={starCount}> |
| 118 | <App /> |
| 119 | </StarCountProvider> |
| 120 | </PreferencesProvider> |
| 121 | </ThemeProvider> |
| 122 | ); |
| 123 | } |
nothing calls this directly
no outgoing calls
no test coverage detected