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
The documentation states 'key: the same as the key in mutate', but the key in useSWRMutation does not support a filter function. This document error has caused difficulties for myself and many others.
It would be beneficial to consider adding support for a filter function in useSWRMutation, akin to the global mutation feature. In several scenarios, I find myself needing the isLoading and data properties, while also wanting to trigger updates for multiple caches.
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
-
https://swr.vercel.app/docs/mutation#useswrmutation-parameters
The documentation states '
key
: the same as the key in mutate', but the key inuseSWRMutation
does not support a filter function. This document error has caused difficulties for myself and many others.It would be beneficial to consider adding support for a filter function in
useSWRMutation
, akin to the global mutation feature. In several scenarios, I find myself needing theisLoading
anddata
properties, while also wanting to trigger updates for multiple caches.Beta Was this translation helpful? Give feedback.
All reactions