News for hackers. Stuff that matters.
Re:Don't build a general-purpose API to power your own front... by atom_arranger on Tuesday September 14, 2021 @07:22PM (#28532885)
Use a networking library like relay, or react-query and 90% of your state management problems go away in most apps.

Your state is on the DB, those libs handle fetching and caching it.

Honorable mention, haven’t used it myself but there is RTK Query too, which is a library like those, but based on Redux, could be easier to debug.

There are no comments on this comment yet.