Live data from Hacker News

RIP Redux: Dan Abramovich Announces Future-Fetcher

react-etc.net

21–30 of 49 posts

Re: RIP Redux: Dan Abramovich Announces Future-Fetcher

#22
One of my favourite parts of ReasonReact is that reducers are built in, out of the box. The Future-Fetcher feature coming in React reminds me of that; I recently built a React Native app that has 99.8% Flow type coverage, that’s meaningful and has caught dozens of bugs as the team worked on it. Having nice state management built into React will be lovely, and subsume a lot of the type imports or duplication that using Redux, React and Flow together currently requires.

Re: RIP Redux: Dan Abramovich Announces Future-Fetcher

#24
post #17

I think it'll also be interesting to see how Apollo continues to evolve in this space as more people adopt GraphQL in their React apps. Apollo is getting more and more state management features that can handle lots of what Redux is doing: https://dev-blog.apollodata.com/the-future-of-state-manageme...

Apollo uses Redux under the hood.

Not true for Apollo v2, it’s providing local state management via apollo-link-state plugin which works pretty well, and once they got the rest support working, it will be a very competitive alternative to redux.

Re: RIP Redux: Dan Abramovich Announces Future-Fetcher

#25
I use redux a lot and love the way you can reason about the state of the app from a single object - which opens up all sorts of useful things like time-travel etc.

However - after having plugged in a lot of reducers - the boilerplate code required to do simple stuff becomes a real bore. I've since compromised by using a simple `key-value store` reducer that I can write new values to without needing a new reducer with accompanying actions.

I'm sure this is not how it's supposed to be used but nobody ain't got no time for making all that boilerplate just for a button :-)

Like I say - it's worth it though - it's amazing how large frontend apps "just work" once you have the state in a single place and the UI rendering from it and it alone.

Re: RIP Redux: Dan Abramovich Announces Future-Fetcher

#28

The async rendering rendering stuff Dan is showing in his talk ( https://www.youtube.com/watch?v=_c7ajDXb4qw ) looks great, but I disagree that this is a redux killer. redux is useful for a lot more than just async fetching & loading. I think these new features will just reduce the scope of what redux is used heavily for.

> redux is useful for a lot more than just async fetching & loading

Redux deliberately doesn't deal with async processes, that's left up to the user.

Re: RIP Redux: Dan Abramovich Announces Future-Fetcher

#29
post #23

Earlier quoted context omitted.

I will keep using VanilaJS, nothing else is worthwhile unless to pump up CVs.

So for every project you implement solutions to common problems differently?

We use server side rendering with minimal JavaScript for dynamic behaviors.

ASP.NET, Spring and JEE work just fine.

Re: RIP Redux: Dan Abramovich Announces Future-Fetcher

#30
post #29

Earlier quoted context omitted.

So for every project you implement solutions to common problems differently?

We use server side rendering with minimal JavaScript for dynamic behaviors. ASP.NET, Spring and JEE work just fine.

The answer to the complexity of JS and associated frameworks/libraries cannot simply be "stop making JS apps".

Don't get me wrong, I agree server side rendering is a lot simpler and solves many problems, but there are plenty of reasons to go with a full client-side app and in those cases libraries and frameworks, while not essential, are logical and sensible conclusions.

Post reply on HN