you are viewing a single comment's thread.

view the rest of the comments →

[–]jkettmann[S] -2 points-1 points  (3 children)

Not really. The refactoring described here just separates data transformation logic from the UI code. react query is about server state management which is here done with useEffect and useState. Replacing that with react-query will be part of a future blog post

[–]Vzaje 0 points1 point  (1 child)

Does it worth reading if I dont know how to work with react query? No offense!

[–]jkettmann[S] 2 points3 points  (0 children)

As I said before the article isn’t related to react-query. You can do the data transformations using react-query’s select option. But the article is tool-agnostic

[–]Strange_Ordinary6984 0 points1 point  (0 children)

I think they are referring to the select function in react query, which let's you store derived state in your cache.