Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
hazae41 committed Aug 29, 2022
1 parent 3ee2f37 commit 78a165c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/next/pages/keys/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ async function fetchAsJson<T>([url, id]: any, more: XSWR.PosterMore<T>) {

function useKeyData(id: number) {
const handle = XSWR.useSingle(
["/api/keys", id],
id > 0 ? ["/api/keys", id] : undefined,
fetchAsJson)

XSWR.useFetch(handle)
Expand Down

0 comments on commit 78a165c

Please sign in to comment.