How to create mutation key based on mutation params #7160
Unanswered
ForeshadowRU
asked this question in
Q&A
Replies: 1 comment 4 replies
-
a mutations doesn't really need a key. what are you using the key for ? |
Beta Was this translation helpful? Give feedback.
4 replies
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.
-
I have a list of files that will be downloaded on click
In order to download it a mutation is triggered
If I use isLoading param of that mutation is spins on all files of the list.
I want to add
params.id
as query key, but I am outside of scope for that.Is there any workaround?
Beta Was this translation helpful? Give feedback.
All reactions