Skip to content

Commit

Permalink
chore: add a comment why fetcher accepts null (#918)
Browse files Browse the repository at this point in the history
  • Loading branch information
koba04 authored Jan 26, 2021
1 parent 6907d42 commit 22ef8aa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/types.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// `null` is used for a hack to manage shared state with SWR
// https://github.com/vercel/swr/pull/918
export type fetcherFn<Data> = ((...args: any) => Data | Promise<Data>) | null
export interface ConfigInterface<
Data = any,
Expand Down

0 comments on commit 22ef8aa

Please sign in to comment.