You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Type 'ConfigInterface<any, any, fetcherFn<any>>' is not assignable to type 'ConfigInterface<any, any, (...args: any) => any>'.
Types of property 'fetcher' are incompatible.
Type '((...args: any) => any) | null | undefined' is not assignable to type '((...args: any) => any) | undefined'.
Type 'null' is not assignable to type '((...args: any) => any) | undefined'.ts(2322)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm trying to create an object to pass as value for SWRConfig.
And use it this way
But it give me the following error
For my fetcher function, i'm using axios
Beta Was this translation helpful? Give feedback.
All reactions