I don't know why the author shits on the idea of using react-query so much. That's essentially what they implemented, as it does optimistic writes, caching, revalidating and keeps it separate from the components.
Is there a reason making their own sync engine was more practical than just using react-query?