@evjs/create-app 0.0.23 → 0.0.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/templates/basic-csr/package.json +1 -1
- package/templates/basic-csr/src/main.tsx +4 -2
- package/templates/basic-fns-ecma/package.json +1 -1
- package/templates/basic-plugins/package.json +1 -1
- package/templates/basic-server-fns/package.json +1 -1
- package/templates/basic-server-routes/package.json +1 -1
- package/templates/complex-routing/package.json +1 -1
- package/templates/configured-server-fns/package.json +1 -1
- package/templates/server-fns-query/package.json +1 -1
- package/templates/sqlite-server-fns/package.json +1 -1
- package/templates/trpc-server-fns/package.json +1 -1
- package/templates/websocket-fns/package.json +1 -1
- package/templates/with-tailwind/package.json +1 -1
package/package.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createApp } from "@evjs/client";
|
|
1
|
+
import { createApp, QueryClient } from "@evjs/client";
|
|
2
2
|
import { rootRoute } from "./pages/__root";
|
|
3
3
|
import { aboutRoute } from "./pages/about";
|
|
4
4
|
import { homeRoute } from "./pages/home";
|
|
@@ -10,7 +10,9 @@ const routeTree = rootRoute.addChildren([
|
|
|
10
10
|
postsRoute.addChildren([postsIndexRoute, postDetailRoute]),
|
|
11
11
|
]);
|
|
12
12
|
|
|
13
|
-
const
|
|
13
|
+
const queryClient = new QueryClient();
|
|
14
|
+
|
|
15
|
+
const app = createApp({ routeTree, basepath: "/admin", queryClient });
|
|
14
16
|
|
|
15
17
|
// Register router type for full IDE type-safety on useParams, useSearch, Link, etc.
|
|
16
18
|
declare module "@tanstack/react-router" {
|