Problem: You need to manipulate a query result


Problem: You need to manipulate a query result. (sort, filter, etc, because the endpoint doesn't support it)

Solution: Do it in react-query’s select.

Why:
- It only happens once.
- All consumers can easily enjoy the desired data structure.

To clarify, select runs when the query is fetched.

So if the data changes, the select will reflect the new data.

View original on X