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
We're building a custom middleware were we interact with fetcher.
We check if fetcher === null, but we receive fetcher as undefined inside middleware callback.
The issue is that fetcher comes undefined even if we set it as null in our useSWRImmutable("myKey", null, options)
Types doesn't allow us to define fetcher as undefined in useSWRInmutable.
Expected Behavior
Middleware returns fetcher as null when we set it null in useSWRInmutable
SWR version.
"swr": "^1.3.0"
The text was updated successfully, but these errors were encountered:
Bug report
We're building a custom middleware were we interact with fetcher.
We check if fetcher === null, but we receive fetcher as undefined inside middleware callback.
The issue is that
fetcher
comes undefined even if we set it as null in ouruseSWRImmutable("myKey", null, options)
Types doesn't allow us to define fetcher as undefined in
useSWRInmutable
.Expected Behavior
Middleware returns
fetcher
asnull
when we set itnull
inuseSWRInmutable
SWR version.
"swr": "^1.3.0"
The text was updated successfully, but these errors were encountered: