Comment

Comment by bluelightning2k

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.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton