Skip to content

Commit

Permalink
fix type lint
Browse files Browse the repository at this point in the history
  • Loading branch information
huozhi committed Jun 18, 2023
1 parent fcd4dee commit c2d213e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion e2e/site/app/basic-ssr/block.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
'use client'

import useSWR from 'swr'
import { useDebugHistory } from '~/lib/use-debug-history'

export default function Block() {
const { data } = useSWR<string>('/api/data', async url => {
const { data } = useSWR<string>('/api/data', async (url: string) => {
const res = await fetch(url).then(v => v.json())
return res.name
})
Expand Down

0 comments on commit c2d213e

Please sign in to comment.