using useSWRMutation and optimisticData in a form to send a POST #2277
Unanswered
marco-digennaro
asked this question in
Q&A
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
i'm just trying out the version 2.0.0 and tried to using useSWRMutation and optimisticData in a form to send a POST and update my data remotely.
this is extracted from my code:
I get optimisticData red underlined on my IDE with the following problem:
I don't understand where's the type error and. how i can solve it.
thank you in advance for your help
Beta Was this translation helpful? Give feedback.
All reactions