-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* cleanup index/app * moved index route, yay * migrate state management * move compound components * make demo link typesafe * remove old stuff * add smoketest * move smoketest
- Loading branch information
Showing
54 changed files
with
249 additions
and
4,181 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,4 +23,7 @@ coverage | |
*.njsproj | ||
*.sln | ||
*.sw? | ||
|
||
# tanstack/router | ||
**/routeTree.gen.ts | ||
src/route-tree.ts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import { StrictMode } from 'react'; | ||
import { QueryClientProvider, QueryClient } from '@tanstack/react-query'; | ||
import { createRouter, RouterProvider } from '@tanstack/react-router'; | ||
|
||
import { MarigoldProvider } from '@marigold/components'; | ||
import theme from '@marigold/theme-core'; | ||
|
||
import { routeTree } from './route-tree'; | ||
|
||
// Router | ||
// --------------- | ||
const router = createRouter({ routeTree }); | ||
|
||
declare module '@tanstack/react-router' { | ||
interface Register { | ||
router: typeof router; | ||
} | ||
} | ||
|
||
// Query | ||
// --------------- | ||
const queryClient = new QueryClient(); | ||
|
||
// App | ||
// --------------- | ||
export const App = () => ( | ||
<StrictMode> | ||
<QueryClientProvider client={queryClient}> | ||
<MarigoldProvider theme={theme}> | ||
<RouterProvider router={router} /> | ||
</MarigoldProvider> | ||
</QueryClientProvider> | ||
</StrictMode> | ||
); |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { ReactQueryDevtools } from '@tanstack/react-query-devtools'; | ||
import { Suspense, lazy } from 'react'; | ||
|
||
const TanStackRouterDevtools = | ||
process.env.NODE_ENV === 'production' | ||
? () => null | ||
: lazy(() => | ||
import('@tanstack/router-devtools').then(res => ({ | ||
default: res.TanStackRouterDevtools, | ||
})) | ||
); | ||
|
||
export const Devtools = () => ( | ||
<Suspense> | ||
<TanStackRouterDevtools /> | ||
<ReactQueryDevtools /> | ||
</Suspense> | ||
); |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.