We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
We have the following code:
const [mutateSomething, { isLoading }] = api.useMutateSomethingMutation(); [...] return ( <SomeComponent onSomeEvent={() => { mutateSomething(someArg); }} /> );
Understandably, we're getting a @typescript-eslint/no-floating-promises error.
Based on this comment, we've therefore configured our eslintrc with the following:
'@typescript-eslint/no-floating-promises': [ 'error', { allowForKnownSafePromises: [ { from: 'package', name: 'SafePromise', package: '@reduxjs/toolkit' }, ], }, ],
However, the eslint error isn't disappearing. Are we missing something, or does this just not work for this case for some reason?
Versions
The text was updated successfully, but these errors were encountered:
No branches or pull requests
We have the following code:
Understandably, we're getting a @typescript-eslint/no-floating-promises error.
Based on this comment, we've therefore configured our eslintrc with the following:
However, the eslint error isn't disappearing. Are we missing something, or does this just not work for this case for some reason?
Versions
The text was updated successfully, but these errors were encountered: