How to use strong typing in useSWRConfig? #1455
Unanswered
ThiagoMaia1
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I want to read a cache key that's supposed to be a boolean. But when I use:
isDataLoading has 'any' type, obviously because I haven't informed SWR anywhere that it's supposed to be a boolean. Is there any way to inform this so that it's enforced everywhere? useSWRConfig does not accept any generic types.
Beta Was this translation helpful? Give feedback.
All reactions