Replies: 1 comment
-
I am not sure why that matters. I think you want to just toggle the state depending on the id? Something like:
something like this would toggle |
Beta Was this translation helpful? Give feedback.
0 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.
-
I have a custom hook, that changes a boolean based on the current (!value).
Hook call
I'd like to optimistically update my UI (checkbox input) without waiting for my server. The thing is, I'm not passing a boolean value that I could use in order to handle the update.
Is there a way around this? Or is it preferable to change the logic on my server?
RQ is 🔥, completely in ❤️
Beta Was this translation helpful? Give feedback.
All reactions