refacto to use ref route query

This commit is contained in:
Julien Calixte
2023-08-15 01:08:08 +02:00
parent 11831e1ca6
commit 43b99eed52
9 changed files with 94 additions and 125 deletions

View File

@@ -2,7 +2,7 @@ import { computed, onMounted, Ref, ref, toValue } from 'vue'
import { NOTE_WIDTH } from '@/constants/note-width'
import { useOverlay } from '@/hooks/useOverlay.hook'
import { useQueryStackedNotes } from '@/hooks/useQueryStackedNotes.hook'
import { useRouteQueryStackedNotes } from '@/hooks/useRouteQueryStackedNotes.hook'
const BOOKMARK_WIDTH = 2
@@ -22,7 +22,7 @@ export const useNoteOverlay = (
})
onMounted(() => {
const { stackedNotes } = useQueryStackedNotes()
const { stackedNotes } = useRouteQueryStackedNotes()
const noteElement = document.querySelector(
`.${className}`
) as HTMLElement | null