-
Beta Was this translation helpful? Give feedback.
Answered by
kitten
Dec 10, 2020
Replies: 1 comment 1 reply
-
Destructuring an array doesn't require you to choose a name, so you can use: It's also possible to set up an exception for ESLint and TypeScript to ignore variables that start with an underscore, e.g. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
GollyJer
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Destructuring an array doesn't require you to choose a name, so you can use:
const [, update] = useMutation(...);
for instance.It's also possible to set up an exception for ESLint and TypeScript to ignore variables that start with an underscore, e.g.
const [_result, update] = useMutation(...);