How to wrap useSWRMutation and use return data
I’m trying to wrap useSWRMutation and its result in my own hook.
Unfortunately I’m doing something wrong since the data
error
and isMutating
are not getting populated.
I’m trying to wrap useSWRMutation and its result in my own hook.
Unfortunately I’m doing something wrong since the data
error
and isMutating
are not getting populated.