blob: 586ceeb014de0d70942357d3825b1e51cd870183 (
plain) (
blame)
1
2
3
4
5
6
7
|
import useSWR from 'swr'
export default function useNotes(){
const { data: notes, error, mutate: mutateNotes } = useSWR('/api/notes')
return {notes, mutateNotes, error}
}
|