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
After upgrading to React 19 and being on the latest swr, I have noticed that some data is not fetched. After short investigation, I have noticed that useSWRImmutable hook does not take fetcher value from the global config, thus does not fetch at all, while regular useSWR works fine as it was.
As a workaround it is possible to provide fetcher to every hook, but it feels redundant, so I wanted to clarify whether this is expected or indeed a new issue. Couldn't find any mention in discussions or docs 😅
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
-
After upgrading to
React
19 and being on the latestswr
, I have noticed that some data is not fetched. After short investigation, I have noticed thatuseSWRImmutable
hook does not takefetcher
value from the global config, thus does not fetch at all, while regularuseSWR
works fine as it was.As a workaround it is possible to provide
fetcher
to every hook, but it feels redundant, so I wanted to clarify whether this is expected or indeed a new issue. Couldn't find any mention in discussions or docs 😅Beta Was this translation helpful? Give feedback.
All reactions