Redux-query – A React/Redux library for querying and managing network state
amplitude.engineering
Redux-query – A React/Redux library for querying and managing network state
1–10 of 63 posts
Re: Redux-query – A React/Redux library for querying and managing network state
#2To me it just break all encapsulation and just lead to massive tangled code that is really hard to maintain …
Edit: I want to clarify what I mean with the «too much magic» part. It's not redux itself which has too much magic in it, just your application flow that becomes magic when using redux, especially with libraries like the one showed by this article or redux-form[1].
Re: Redux-query – A React/Redux library for querying and managing network state
#3Think that genraally we're learning that these things should be automated for us: loading data traditionally sucks. GraphQL is really where it's at!
edit: that mobile keyboard though...
Re: Redux-query – A React/Redux library for querying and managing network state
#4I love react, with the reusable components and the ergonomic of jsx but I really don't like what redux does to your code: it involves too much magic, you lose the concept of independent components and every change becomes a global one: everybody is notified of the inner state of each component … To me it just break all encapsulation and just lead to massive tangled code that is really hard to maintain … Edit: I want…
> you lose the concept of independent components
How? Components take props. They're just as independent as they were previously.
> everybody is notified of the inner state of each component
This... isn't the case.
Redux (and Flux in general) is useful when there is application-level data that needs to be shared across different components, and otherwise something ends up being a prop to a bunch of things that shouldn't be. Or when you want something to remain around when components go out of scope. If you don't have this problem, Redux is overkill. For larger apps, it's damn useful.
Re: Redux-query – A React/Redux library for querying and managing network state
#5I love react, with the reusable components and the ergonomic of jsx but I really don't like what redux does to your code: it involves too much magic, you lose the concept of independent components and every change becomes a global one: everybody is notified of the inner state of each component … To me it just break all encapsulation and just lead to massive tangled code that is really hard to maintain … Edit: I want…
Redux itself has absolutely no magic. The only "magic" I see is when you add state diffing and memoization (reselect). And even in this case, it's not really hard to understand what's happening.
React with redux is just a big pubsub system, how you set up your application state and how each component interacts with that state will decide how "tangled" and hard to maintain your code is.
Re: Redux-query – A React/Redux library for querying and managing network state
#6Heh, I made the same thing but with global endpoints and swappable drivers so that components can be shared and endpoints can be stubbed/mocked: https://gitHub.com/tonyhb/tectonic Think that genraally we're learning that these things should be automated for us: loading data traditionally sucks. GraphQL is really where it's at! edit: that mobile keyboard though...
Re: Redux-query – A React/Redux library for querying and managing network state
#7I love react, with the reusable components and the ergonomic of jsx but I really don't like what redux does to your code: it involves too much magic, you lose the concept of independent components and every change becomes a global one: everybody is notified of the inner state of each component … To me it just break all encapsulation and just lead to massive tangled code that is really hard to maintain … Edit: I want…
Re: Redux-query – A React/Redux library for querying and managing network state
#8Re: Redux-query – A React/Redux library for querying and managing network state
#9Heh, I made the same thing but with global endpoints and swappable drivers so that components can be shared and endpoints can be stubbed/mocked: https://gitHub.com/tonyhb/tectonic Think that genraally we're learning that these things should be automated for us: loading data traditionally sucks. GraphQL is really where it's at! edit: that mobile keyboard though...
Re: Redux-query – A React/Redux library for querying and managing network state
#10I love react, with the reusable components and the ergonomic of jsx but I really don't like what redux does to your code: it involves too much magic, you lose the concept of independent components and every change becomes a global one: everybody is notified of the inner state of each component … To me it just break all encapsulation and just lead to massive tangled code that is really hard to maintain … Edit: I want…