@fy-/fws-vue 2.0.34 → 2.0.35

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.
@@ -44,10 +44,10 @@ export async function initVueServer(
44
44
  const url =
45
45
  options.url || `${getPath()}${getURL().Query ? `?${getURL().Query}` : ""}`;
46
46
  const { app, router, head, pinia } = await createApp(true);
47
- await router.push(url);
48
- await router.isReady();
49
47
  const serverRouter = useServerRouter(pinia);
50
48
  serverRouter._setRouter(router);
49
+ await router.push(url);
50
+ await router.isReady();
51
51
 
52
52
  const result: SSRResult = {
53
53
  uuid: getUUID(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fy-/fws-vue",
3
- "version": "2.0.34",
3
+ "version": "2.0.35",
4
4
  "author": "Florian 'Fy' Gasquez <m@fy.to>",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -18,8 +18,8 @@ export const useServerRouter = defineStore({
18
18
  results: {},
19
19
  }) as ServerRouterState,
20
20
  getters: {
21
- currentRoute: (state) => state._router!.currentRoute,
22
- route: (state) => state._router!.currentRoute,
21
+ currentRoute: (state) => state._router?.currentRoute,
22
+ route: (state) => state._router?.currentRoute,
23
23
  },
24
24
  actions: {
25
25
  setStatus(status: number) {