2 ms·
The general advice is to write your hooks without dependency arrays first, and then only add dependency arrays once you know what your hook body looks like. I f
by nightpool 5y ago
The general advice is to write your hooks without dependency arrays first, and then only add dependency arrays once you know what your hook body looks like. I find that that generally makes them much easier to debug. Also, yes, the exhaustive-hooks ESlint rule is a life-saver.