Rules
no-use-in-try-catch
Full Name in eslint-plugin-react-hooks-extra
Full Name in @eslint-react/eslint-plugin
Features
🔍
Presets
recommendedrecommended-typescriptrecommended-type-checked
What it does
This rule disallows the use of use in a try-catch block.
use cannot be called in a try-catch block. Instead of a try-catch block wrap your component in an Error Boundary, or provide an alternative value to use with the Promise’s .catch method.