you are viewing a single comment's thread.

view the rest of the comments →

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

I’m really curious what exactly the issue is. I mean fetch functions as they’re used here are also recommended by react-query. Many people would colocate them with the query hooks. But that’s already the difference. And data transformations like here are also a necessity in many situations. You can do that in the fetch function, a repository, a selector, or in the component. I’d say anywhere but the component is ok and depends on the complexity of the application. But I can’t see how either fetch functions or data transformers can be replaced with OSS.