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: docs/api.md
+39Lines changed: 39 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -78,6 +78,7 @@ It does not modify the component class passed to it; instead, it *returns* a new
78
78
*[`areOwnPropsEqual`]*(Function)*: When pure, compares incoming props to its previous value. Default value: `shallowEqual`
79
79
*[`areStatePropsEqual`]*(Function)*: When pure, compares the result of `mapStateToProps` to its previous value. Default value: `shallowEqual`
80
80
*[`areMergedPropsEqual`]*(Function)*: When pure, compares the result of `mergeProps` to its previous value. Default value: `shallowEqual`
81
+
*[`storeKey`]*(String)*: The key of the context from where to read the store. You probably only need this if you are in the inadvisable position of having multiple stores. Default value: `'store'`
81
82
82
83
<aid="connect-arguments-arity"></a>
83
84
##### The arity of mapStateToProps and mapDispatchToProps determines whether they receive ownProps
@@ -384,3 +385,41 @@ function selectorFactory(dispatch) {
Creates a new `<Provider>` which will set the Redux Store on the passed key of the context. You probably only need this if you are in the inadvisable position of having multiple stores. You will also need to pass the same `storeKey` to the `options` argument of [`connect`](#connectmapstatetoprops-mapdispatchtoprops-mergeprops-options)
392
+
393
+
<aid="createProvider-arguments"></a>
394
+
#### Arguments
395
+
396
+
*[`storeKey`] (*String*): The key of the context on which to set the store. Default value: `'store'`
397
+
398
+
#### Examples
399
+
Before creating multiple stores, please go through this FAQ: [Can or should I create multiple stores?](http://redux.js.org/docs/faq/StoreSetup.html#can-or-should-i-create-multiple-stores-can-i-import-my-store-directly-and-use-it-in-components-myself)
0 commit comments