refactor(cache): remove unused elements in Cache's script

This commit is contained in:
Lucien Cartier-Tilet 2023-05-08 10:37:39 +02:00
parent 85da82cd70
commit e0bcdb6dd3
Signed by: phundrak
GPG Key ID: BD7789E705CB8DCA
1 changed files with 0 additions and 2 deletions

View File

@ -3,7 +3,6 @@
</template>
<script setup lang="ts">
import { Ref, ref } from 'vue';
import { Observable, of } from 'rxjs';
const props = defineProps({
@ -40,7 +39,6 @@ const storeInCache = (data: Observable<any>, name: string): Observable<any> => {
return data;
};
const dataFromCache: Ref<Observable<any>> = ref(null);
if (isDataOutdated(props.name)) {
emits('cached', storeInCache(props.callback(), props.name));
} else {