ml-in-barcelona / react-rules-of-hooks-ppx

This ppx validates the rules of React hooks.
BSD 2-Clause "Simplified" License
43 stars 1 forks source link

Check useEffects idents inside Pexp_match/Pexp_try cases which will have expressions #2

Closed davesnx closed 4 years ago

davesnx commented 4 years ago

This case should trigger the error: https://astexplorer.net/#/gist/d5cd3f97af21bfa2ab1621f8e8f5eb04/a12ab711bccafd83daf14bd2a531c589ff376e44

Right now we ignore the matches and try catches.