The issue involves a known compiler limitation with try/catch/finally blocks affecting linting behavior.
The issue reports that eslint-plugin-react-hooks fails to report errors when try/catch/finally blocks are present in a component. This is a known compiler limitation. The maintainer has acknowledged the issue and suggested an undocumented workaround, but the core problem requires compiler changes.
The linter should flag the useMemo error regardless of the try/catch block present in the component.
The linter reports 0 errors. Removing the try/catch block immediately causes the useMemo error to reappe
Claim this issue to let others know you're working on it. You'll earn 10 points when you complete it!