@live-change/dao-vue3
Advanced tools
Comparing version 0.5.6 to 0.5.7
@@ -35,2 +35,3 @@ import { ref, onUnmounted, getCurrentInstance, unref, reactive, isRef, shallowRef, watch, computed } from 'vue' | ||
const res = preFetchMap.get(JSON.stringify(what)) | ||
console.log("PREFETCH", what, "RES", res, "MORE", more) | ||
if(res.error) throw new Error(res.error) | ||
@@ -80,3 +81,8 @@ const data = res.data | ||
if(isRef(path)) { | ||
if(typeof window == 'undefined') return fetch(api, path.value) | ||
if(typeof window == 'undefined') { | ||
console.log("FETCH", path.value) | ||
const data = await fetch(api, path.value) | ||
console.log("FETCHED", data) | ||
return data | ||
} | ||
let liveRef = shallowRef() | ||
@@ -271,3 +277,2 @@ let onUnmountedCallbacks = [] | ||
return resultRef | ||
} | ||
@@ -274,0 +279,0 @@ |
{ | ||
"name": "@live-change/dao-vue3", | ||
"version": "0.5.6", | ||
"version": "0.5.7", | ||
"author": { | ||
@@ -13,3 +13,3 @@ "email": "m8@em8.pl", | ||
"dependencies": { | ||
"@live-change/dao": "^0.5.6" | ||
"@live-change/dao": "^0.5.7" | ||
}, | ||
@@ -36,3 +36,3 @@ "description": "Vue.js integration for live-change dao", | ||
}, | ||
"gitHead": "8a0894ea0f57b6e1c5a627258617b8353e70533d" | ||
"gitHead": "53cd3536a135bdfd31edc75538a3ea5a426d307e" | ||
} |
26513
642
Updated@live-change/dao@^0.5.7