Why do I have to pass the first parameter of useSWRMutation. I just want to make a network request but not to mutate anything. #2625
Answered
by
promer94
ZhuHuaijun
asked this question in
Q&A
-
Bug reportDescription / Observed BehaviorWhat kind of issues did you encounter with SWR? Expected BehaviorHow did you expect SWR to behave here? Repro Steps / Code ExampleOr share your code snippet or a CodeSandbox link is also appreciated! Additional ContextSWR version. |
Beta Was this translation helpful? Give feedback.
Answered by
promer94
May 18, 2023
Replies: 1 comment
-
The key is used for Avoiding Race Conditions. If you don't need this feature. You could just pass a placeholder here. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
promer94
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The key is used for Avoiding Race Conditions.
If you don't need this feature. You could just pass a placeholder here.