@live-change/dao-vue3 0.1.22 → 0.2.0

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 +2 -2
  2. package/package.json +1 -1
package/lib/live.js CHANGED
@@ -24,7 +24,7 @@ async function live(api, path, onUnmountedCb) {
24
24
  const res = preFetchMap.get(JSON.stringify(what))
25
25
  if(res.error) throw new Error(res.error)
26
26
  const data = res.data
27
- if(more) {
27
+ if(data && more) {
28
28
  if(Array.isArray(data)) {
29
29
  for(let i = 0; i < data.length; i ++) {
30
30
  for(const moreElement of more) {
@@ -59,7 +59,7 @@ async function live(api, path, onUnmountedCb) {
59
59
  }
60
60
  }
61
61
  }
62
- return data
62
+ return ref(data)
63
63
  }
64
64
  return createObject(path.what, path.more)
65
65
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@live-change/dao-vue3",
3
- "version": "0.1.22",
3
+ "version": "0.2.0",
4
4
  "author": {
5
5
  "email": "m8@em8.pl",
6
6
  "name": "Michał Łaszczewski",