2 ms·
> Tools like React-Query make handling one kind of global state easy, *but do so by mixing it up with the view layer.* This is where I think `react-query` fits
by qudat 5y ago
> Tools like React-Query make handling one kind of global state easy, *but do so by mixing it up with the view layer.*
This is where I think `react-query` fits a very specific niche. I see a lot of new projects reaching for it and while I think for simple applications it can work fine, I have a serious problem with it for large applications: it's baked into react. React is a view layer that is slowly consuming the world and while I don't think react is going anywhere, people are starting to feel the burden of a black box system.
As someone who's primary job has been building large scale web applications for the past 7 years and has weclomed the chaotic nature of the FE ecosystem, I'm starting to feel a little less optimistic about react's future.
That's why the allure of something like redux is so strong for some of us. Redux is not that complicated and the boilerplate has mostly been reduced to a few lines of code.
React is continuing to grow in complexity with hooks, suspense, async rendering, and now server components. I think for personal projects I'm probably going to reach for something else like Svelte.