You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,14 +23,14 @@ middleware: You can include redux middleware like redux-thunk here. Lightning-Re
23
23
24
24
**registerReducer(name, reducer):** Adds the specified reducer function to the redux store with the specificed name as it's slice of state.
25
25
26
-
**connect(mapStateToAttributes, target):** mapStateToAttributes is a key pair object where the key is the attribute on the component you want set, and the value is either the value in the redux state graph, or a callback function. This function receives the component and state to compute the value. You can pass the component you want connected, but if it isn't populated, it will get populated by event.getSource(). It also sets a dispatch expando for convenience in the component's controller methods.
26
+
**connect(mapStateToAttributes, target):** mapStateToAttributes either a key pair object where the key is the attribute on the component you want set, and the value is either the value in the redux state graph, or a callback function. mapStateToAttributes can also be a function that returns this key pair value. This function receives the state and component to compute the value. You can pass the component you want connected, but if it isn't populated, it will get populated by event.getSource(). It also sets a dispatch expando for convenience in the component's controller methods.
27
27
28
28
**getState():** Technically not a component method, this is a convenience expando that allows access to the Redux state.
29
29
30
30
## Installation
31
-
Lightning-Redux Unmanaged Packaged (Redux Component, redux and redux-thunkstatic resource): https://login.salesforce.com/packaging/installPackage.apexp?p0=04t50000000M7PT
0 commit comments