Changed context prop of Provider to Context<any> to reflect that initial context doesn't matter, as it is overwritten internally in Provider on instantiation.

This commit is contained in:
Søren Bruus Frank
2018-12-19 14:17:54 +01:00
parent a767c5576d
commit 3fe641a47d
+3 -3
View File
@@ -402,10 +402,10 @@ export interface ProviderProps<A extends Action = AnyAction> {
*/
store: Store<any, A>;
/**
* Optional context to be used internally in react-redux. Initial value doesn't matter, as it is overwritten with the
* internal state of Provider.
* Optional context to be used internally in react-redux. Use React.createContext() to create a context to be used.
* Initial value doesn't matter, as it is overwritten with the internal state of Provider.
*/
context?: Context<ReactReduxContextType<any, A>>;
context?: Context<any>;
}
/**