@fy-/fws-vue 2.1.37 → 2.1.39

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.
@@ -5,7 +5,7 @@ import {
5
5
  TransitionRoot,
6
6
  } from '@headlessui/vue'
7
7
  import { XCircleIcon } from '@heroicons/vue/24/solid'
8
- import { h, onMounted, onUnmounted, ref, watch } from 'vue'
8
+ import { h, onMounted, onUnmounted, ref } from 'vue'
9
9
  import { useEventBus } from '../../composables/event-bus'
10
10
 
11
11
  const props = withDefaults(
@@ -37,11 +37,7 @@ function setModal(value: boolean) {
37
37
  }
38
38
  isOpen.value = value
39
39
  }
40
- watch(isOpen, (value) => {
41
- if (value === false) {
42
- if (props.onClose) props.onClose()
43
- }
44
- })
40
+
45
41
  onMounted(() => {
46
42
  eventBus.on(`${props.id}Modal`, setModal)
47
43
  })
@@ -46,8 +46,8 @@ export async function initVueServer(
46
46
  const { app, router, head, pinia } = await createApp(true)
47
47
  const serverRouter = useServerRouter(pinia)
48
48
  serverRouter._setRouter(router)
49
- await router.push(url)
50
- await router.isReady()
49
+ await serverRouter._router.push(url)
50
+ await serverRouter._router.isReady()
51
51
 
52
52
  const result: SSRResult = {
53
53
  uuid: getUUID(),
@@ -86,7 +86,7 @@ export async function initVueServer(
86
86
  }
87
87
  }
88
88
 
89
- serverRouter._router = null
89
+ // serverRouter._router = null
90
90
  result.initial.pinia = pinia.state.value
91
91
  callback(result)
92
92
  return result
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fy-/fws-vue",
3
- "version": "2.1.37",
3
+ "version": "2.1.39",
4
4
  "author": "Florian 'Fy' Gasquez <m@fy.to>",
5
5
  "license": "MIT",
6
6
  "homepage": "https://github.com/fy-to/FWJS#readme",