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
Why can the values data and error themselves be undefined? This is not really what is happening. They are always some kind of Ref with values, they cannot be undefined by themselves. The code snippets below confirm this.
Problem
Why can the values
data
anderror
themselves beundefined
? This is not really what is happening. They are always some kind ofRef
with values, they cannot beundefined
by themselves. The code snippets below confirm this.This code shows that
data
anderror
will always beRef<Data>
andRef<Error>
, notRef<Data> | undefined
andRef<Error> | undefined
.I think the
IResponse
interface should be fixed:Anyway, thanks for the
swrv
, it's great!The text was updated successfully, but these errors were encountered: