I don't understand why useSWR can accept null as its first argument. #1582
Answered
by
TakahiroHimi
TakahiroHimi
asked this question in
Q&A
-
Hello! What I don't understand is the following part of the source. https://github.com/vercel/swr/blob/master/src/types.ts#L6-L32 The first argument of useSWR determines the type of Fetcher. Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Answered by
TakahiroHimi
Oct 23, 2021
Replies: 1 comment
-
I solved the problem. It was caused by strict:false in tsconfig.json. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
TakahiroHimi
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I solved the problem.
It was caused by strict:false in tsconfig.json.