Re:Making Sense of React Server Components
by keb_ on Wednesday September 06, 2023 @04:34PM
(#37410918)
Ok, these are the linting rules I was thinking of when I mentioned this in the other comment: https://news.ycombinator.com/item?id=37410666
As you already mentioned, it's not a silver bullet.
The only downside is that sometimes, the rule can end up being overly aggressive and tell you to add things which you explicitly don't want in your dependency array, but it's helpful probably 95+% of the time and not hard to opt out of or work around as needed.
[0] https://www.npmjs.com/package/eslint-plugin-react-hooks