dillon1000/react

Commit

[eslint] Disallow use within try/catch blocks (#34040)

Follow up to #34032. The linter now ensures that `use` cannot be used
within try/catch.
Browse files
Changed paths2 files
First-parent comparison
M packages/eslint-plugin-react-hooks/__tests__/ESLintRulesOfHooks-test.js ModifiedM packages/eslint-plugin-react-hooks/src/rules/RulesOfHooks.ts Modified
Patch

Files changed

Rendering syntax-highlighted changes…