🐛 (stacked notes) refacto query stacked notes in a local store

This commit is contained in:
2021-03-16 23:45:58 +01:00
parent 4b32a97699
commit 996d10b174
4 changed files with 47 additions and 40 deletions

View File

@@ -43,6 +43,7 @@
<script lang="ts">
import { defineComponent, defineAsyncComponent, computed, toRefs } from 'vue'
import { useNote } from '@/hooks/useNote.hook'
import { useQueryStackedNotes } from '@/hooks/useQueryStackedNotes.hook'
const StackedNote = defineAsyncComponent(() =>
import('@/components/StackedNote.vue')
@@ -67,6 +68,7 @@ export default defineComponent({
return {
...useNote('note-container', refProps.user, refProps.repo),
...useQueryStackedNotes(),
routeKey: computed(() => `${props.user}-${props.repo}`)
}
}