Tanstack Query released version 5 with a number of changes and some interesting features, offering an even more powerful toolkit for developers. One of the novelties is a simpler way to perform optimistic updates without having to write code that updates the cache manually.
Full article