- Dec 2021
-
blog.theodo.com blog.theodo.com
- Aug 2021
-
daveceddia.com daveceddia.com
-
connect is pure connect automatically makes connected components “pure,” meaning they will only re-render when their props change – a.k.a. when their slice of the Redux state changes. This prevents needless re-renders and keeps your app running fast.
Tags
Annotators
URL
-
-
kentcdodds.com kentcdodds.com
-
The Redux FAQ has some rules of thumb to help decide whether state should go in Redux, or stay in a component.In addition, if you separate your state by domain (by having multiple domain-specific contexts), then the problem is less pronounced as well.
-
-
kentcdodds.com kentcdodds.com
-
I consistently see developers putting all of their state into redux. Not just global application state, but local state as well. This leads to a lot of problems, not the least of which is that when you're maintaining any state interaction, it involves interacting with reducers, action creators/types, and dispatch calls, which ultimately results in having to open many files and trace through the code in your head to figure out what's happening and what impact it has on the rest of the codebase.
-
- Jul 2020
-
kentcdodds.com kentcdodds.com
-
Sure you can hook up different reducers to manage different parts of your application, but the indirection of going through all these action creators and reducers is not optimal.
On indirection through multiple action creators and reducers for managing different parts of an application
-
consistently see developers putting all of their state into redux. Not just global application state, but local state as well. This leads to a lot of problems
global vs local state management. Solutions are not one size fits all.
-
One of the reasons redux was so successful was the fact that react-redux solved the prop drilling problem. The fact that you could share data across different parts of your tree by simply passing your component into some magical connect function was wonderful.
Reasons why redux was so successful
-
- May 2020
-
redux.js.org redux.js.orgRedux1
-
functional programming utility, and is included in Redux as a convenience. You might want to use it to apply several store enhancers in a row.
store enhancers for redux; All compose does is let you write deeply nested function transformations without the rightward drift of the code. Don't give it too much credit!
-
- Apr 2020
-
-
SPAs are incredibly common, popularised by client-side web frameworks like Angular, React and Vue.js.
SPAs:
- popularised by client-side web frameworks like Angular, React and Vue.js
- real difference between the MVP app is shifting most of its work on the client side
- there's client side MVC, MVVM (model-view-view-model) and FRP (functional reactive programming)
Angular - client side MVC framework following its pattern, except it's running inside the users web browser.
React - implementation of FRP. A little more flexible, but more concerned with state change events in data (often using some event store like Redux)
-
-
-
When a React component dispatches actions, how can another service catch the actions, accumulate and group them, then redispatch a single action?
Catching actions to accumulate and group them
-
- Mar 2020
-
blog.logrocket.com blog.logrocket.com
-
react-redux包很简单,暴露了两个东西:Provider和connnect
-
-
www.reactreduxtutorials.com www.reactreduxtutorials.com
-
文章讲解了作者在使用React Redux时的文件夹架构。作为他的最佳实践,可以参考一下。
-
-
daveceddia.com daveceddia.com
-
To do that, the react-redux library comes with 2 things: a component called Provider, and a function called connect.
react-redux带来两样东西: 一个叫Provider的组件 一个叫connect的函数
-
- Feb 2020
-
thoughtbot.com thoughtbot.com
-
Good explanation of how to convert to using react hooks with redux store.
Tags
Annotators
URL
-
- Jan 2020
-
www.thegreatcodeadventure.com www.thegreatcodeadventure.com
-
Instead of allowing any and all components to fetch and manipulate data, which can make debugging pretty much suck, we want to implement a pattern that's in line with the Single Responsibility Principle, and that keeps our code DRY.
-
- Nov 2019
-
legacy.reactjs.org legacy.reactjs.org
-
The most common signature for HOCs looks like this: // React Redux's `connect` const ConnectedComment = connect(commentSelector, commentActions)(CommentList); What?! If you break it apart, it’s easier to see what’s going on. // connect is a function that returns another function const enhance = connect(commentListSelector, commentListActions); // The returned function is a HOC, which returns a component that is connected // to the Redux store const ConnectedComment = enhance(CommentList); In other words, connect is a higher-order function that returns a higher-order component!
probably a common and useful example that is used with Redux
Tags
Annotators
URL
-
-
www.ag-grid.com www.ag-grid.comag-Grid1
-
This section introduces how React components using the ag-Grid Data Table can take advantage of a Redux store to simplify state management.
-
- Apr 2019
- Jan 2019
-
blog.rangle.io blog.rangle.io
-
.
-
-
slides.com slides.com
Tags
Annotators
URL
-
- Nov 2018
-
nicolashery.com nicolashery.com
Tags
Annotators
URL
-
- Oct 2018
-
www.thegreatcodeadventure.com www.thegreatcodeadventure.com
-
codeburst.io codeburst.io
Tags
Annotators
URL
-
-
gkedge.gitbooks.io gkedge.gitbooks.io
Tags
Annotators
URL
-
- Jan 2016
-
teropa.info teropa.info
-
Useful tutorial that covers combined usage on the client and server.
-
- Sep 2015
-
rackt.github.io rackt.github.io
-
If your head boiled from reading the above section, imagine what it was like to write it.
I find this slightly disturbing to read in the documentation (!)
-
- Aug 2015
-
blog.andyet.com blog.andyet.com
-
Probably the best explanation I've seen yet on the why and how of a functional approach to UI state management with Redux
-