Only accept options object in mutate
#2116
Unanswered
FernandoChu
asked this question in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Currently
mutate
allows for the option object to just be aboolean
, representing the value ofrevalidate
. While this is useful since most of the time that's the only option one cares about, it is also very confusing for function to take two different types as options value. This behavior is not documented in the docs, I'm not sure if this is because this is not officially supported, in which case it would be good to remove this for v2.Related: vercel/swr-site#328
Beta Was this translation helpful? Give feedback.
All reactions