|
|
|
|
|
by purplerabbit
1551 days ago
|
|
I'm with you on thought #2. Regarding your first thought, however: if you want control over when `useEffect` callbacks fire, identity isn't just an optimization, it's a necessity. For example (used in another comment): if you're not using a smart intermediate layer like `react-query`, you can unintentionally trigger loading states and re-fetches if you're not closely watching dependency array identities |
|
[1] https://twitter.com/dan_abramov/status/1104414469629898754