Strongly recommend React-query (now Tanstack Query). ~50% of those useEffect and useState hooks are simply loading data or tracking loading states, mutation state, etc. This really improves with Tanstack Query.
Even better is to get Tanstack Query for free with type-safe backend in T3 stack.
Hard to overstate how much the symptoms described in this thread can improve simply from this.
Even better is to get Tanstack Query for free with type-safe backend in T3 stack.
Hard to overstate how much the symptoms described in this thread can improve simply from this.