3 ms·
I do think we need to agree to disagree. That being said according to the README for the Redux Starter Kit these are listed as problems it wants to solve: • "C
by bfrydl 8y ago
I do think we need to agree to disagree. That being said according to the README for the Redux Starter Kit these are listed as problems it wants to solve:
• "Configuring a Redux store is too complicated"
• "I have to add a lot of packages to get Redux to do anything useful"
• "Redux requires too much boilerplate code"
I can't help but point out that all of these concerns can also be solved by not using any extra libraries and just doing what I suggested.
Configuration: createStore()
Lot of packages: Not needed, just pass dispatch around.
Boilerplate code: Pretty much just combineReducers calls.
- acemarke 8y agoI'd encourage you to read through the RSK docs further to see what all it actually does, then :)
- bfrydl 8y agoSorry, I know you're heavily involved in this ecosystem, I just don't really see the need for any of this. create-react-app is mostly about webpack, isn't it? Redux works fine on its own.
- acemarke 8y agoFWIW, I'm a Redux maintainer, and I built this specifically in response to how I've seen people _want_ to use Redux, and the concerns they've raised about using Redux. [0] Almost everyone uses `redux-thunk` [1]. Adding that to a plain Redux store takes a few steps. Adding middleware _and_ setting up the Redux DevTools Extension adds another couple steps [2] So, RSK's `configureStore()` does that by default [3]. Accidental mutation is the #1 mistake folks make when writing Redux apps [4]. So, `configureStore()` adds a middleware by default that warns about that mistake [5]. Writing immutable update logic can be difficult, and especially painful if the updates are nested [6]. Also, many folks don't want to use switch statements for some reason [7]. So, we ship a `createReducer()` utility that lets you write "mutative" immutable updates, and define the reducers as a lookup table [8]. Many people don't like writing action types and action creators by hand. So, RSK includes a `createSlice` utility that generates those automatically. [9] None of these are incredibly ground-breaking. There's lots of existing Redux addons that do similar things. But, we're including all these utilities in an "official" package, and recommending that folks use it. No one's being forced to use RSK. But, I can say that just about everyone who's seen this has said something similar to "this looks awesome, I can't wait to use this!". [0] https://github.com/reduxjs/redux/issues/2295 https://github.com/reduxjs/redux/issues/2295 [1] https://blog.isquaredsoftware.com/presentations/2017-09-might-need-redux-ecosystem/#/37 https://blog.isquaredsoftware.com/presentations/2017-09-migh... [2] https://redux.js.org/recipes/configuring-your-store#integrating-the-devtools-extension https://redux.js.org/recipes/configuring-your-store#integrat... [3] https://redux-starter-kit.js.org/api/configureStore https://redux-starter-kit.js.org/api/configureStore [4] https://redux.js.org/faq/react-redux#why-isnt-my-component-re-rendering-or-my-mapstatetoprops-running\ https://redux.js.org/faq/react-redux#why-isnt-my-component-r... [5] https://redux-starter-kit.js.org/api/getDefaultMiddleware https://redux-starter-kit.js.org/api/getDefaultMiddleware [6] https://redux.js.org/recipes/structuring-reducers/immutable-update-patterns https://redux.js.org/recipes/structuring-reducers/immutable-... [7] https://blog.isquaredsoftware.com/2017/05/idiomatic-redux-tao-of-redux-part-2/#switch-statements https://blog.isquaredsoftware.com/2017/05/idiomatic-redux-ta... [8] https://redux-starter-kit.js.org/api/createReducer https://redux-starter-kit.js.org/api/createReducer [9] https://redux-starter-kit.js.org/api/createSlice https://redux-starter-kit.js.org/api/createSlice
- bfrydl 8y agoThat was a very defensive response. Look it's excellent for you that many people want to use your work and think it looks awesome. I am just not one of those people, for reasons developed over years of using Redux professionally. It seems like you think I am just missing something, and that's why I don't agree with you. You should really be more open to the idea that others might think very differently from you and the people you surround yourself with, even after fully considering your ideas. I also knew you were a Redux contributor when I first responded. I was wondering how long I could disagree with you before you pulled rank.
- BigJono 8y agoI've been down this path with acemarke before, about redux-thunk even. All of his commits on Redux are documentation changes, and he feels the need to spam every React thread on this site with comments that start with "I'm a Redux maintainer". In-fact if you google "Redux maintainer" this guy's posts are the first thing that shows up. Also, when React 16 came out with the new Context API, acemarke made a terrible blog post called "Is Redux Dead?", which had links to some sort of paid Redux training, and linked it everywhere without disclosing that fact. He regularly links said posts from his blog (which I assume have the same links to paid training) under the guise of helping beginners, and I'm really not sold that they actually accomplish that at all. In-fact quite the opposite. It all seems pretty shifty and dishonest.
- acemarke 8y ago> All of his commits on Redux are documentation changes ahem https://github.com/reduxjs/react-redux/pull/1000/commits/c9d597366abada5e40c86d4c60a2feea93ea2580 https://github.com/reduxjs/react-redux/pull/1000/commits/c9d... https://github.com/reduxjs/react-redux/pull/1065 https://github.com/reduxjs/react-redux/pull/1065 https://github.com/reduxjs/react-redux/issues/1177 https://github.com/reduxjs/react-redux/issues/1177 https://github.com/reduxjs/react-redux/commits/connect-subscription-experiments https://github.com/reduxjs/react-redux/commits/connect-subsc...
- deleted 8y ago