note more hook involved

This commit is contained in:
Julien Calixte
2023-08-13 21:09:52 +02:00
parent d4f9b7bcb1
commit 1b7f7539a8
3 changed files with 6 additions and 6 deletions

View File

@@ -2,7 +2,7 @@ import { data } from '@/data/data'
import { DataType } from '@/data/DataType.enum'
import { Note } from '@/modules/note/models/Note'
export const useNoteCache = (sha: string) => {
export const prepareNoteCache = (sha: string) => {
const noteId = data.generateId(DataType.Note, sha)
const getCachedNote = async () => data.get<DataType.Note, Note>(noteId)