@live-change/dao-vue3 0.9.164 → 0.9.166

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.
Files changed (2) hide show
  1. package/lib/live.js +4 -5
  2. package/package.json +3 -3
package/lib/live.js CHANGED
@@ -116,6 +116,10 @@ async function live(api, path, onUnmountedCb) {
116
116
  }
117
117
  let liveRef = shallowRef()
118
118
  let onUnmountedCallbacks = []
119
+ onUnmountedCb(() => {
120
+ console.log("UNMOUNTED COMPUTED PATH", path.value, "ON UNMOUNTED CALLBACKS", onUnmountedCallbacks)
121
+ for(const callback of onUnmountedCallbacks) callback()
122
+ })
119
123
  let oldPath = null
120
124
  let updatePromise = null
121
125
  async function update() {
@@ -138,11 +142,6 @@ async function live(api, path, onUnmountedCb) {
138
142
  await update()
139
143
  watch(() => path.value, () => update())
140
144
  const result = computed(() => liveRef.value === null ? null : liveRef.value?.value)
141
-
142
- onUnmountedCb(() => {
143
- console.log("UNMOUNTED COMPUTED PATH", path.value, "ON UNMOUNTED CALLBACKS", onUnmountedCallbacks)
144
- for(const callback of onUnmountedCallbacks) callback()
145
- })
146
145
  return result
147
146
  }
148
147
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@live-change/dao-vue3",
3
- "version": "0.9.164",
3
+ "version": "0.9.166",
4
4
  "author": {
5
5
  "email": "m8@em8.pl",
6
6
  "name": "Michał Łaszczewski",
@@ -10,7 +10,7 @@
10
10
  "url": "https://github.com/live-change/live-change-stack/issues"
11
11
  },
12
12
  "dependencies": {
13
- "@live-change/dao": "^0.9.164"
13
+ "@live-change/dao": "^0.9.166"
14
14
  },
15
15
  "type": "module",
16
16
  "description": "Vue.js integration for live-change dao",
@@ -32,5 +32,5 @@
32
32
  "scripts": {
33
33
  "compileTests": "webpack test/*.js tests-bundle.js"
34
34
  },
35
- "gitHead": "38f9fb8b01a9527d8f6036e174edd1fa41443301"
35
+ "gitHead": "e99ff5ce503d5dc894d0cfe954a58397683d12e0"
36
36
  }