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
- As generic parameter, it requires store state type in order to match given reducers and the state.
148
154
- Any number of middleware, enhancer or reducer can be used to build the state.
149
155
-`mapStoreToProps` is a dummy method that returns passed parameter again. This method can be used to map store object to props which are consumed from connected components. Return type is`MapStateToPropsParam` which is compatible with[connect](https://react-redux.js.org/api/connect).
156
+
-`connected` function is also another dummy function that wraps original[connect](https://react-redux.js.org/api/connect) function but with implicit type resolution support. Problem with original one, when you connect your component with connect method, it is trying to resolve typing by matching signature you passed as parameters to connect_(mapStateToProps, mapDispatchToProps)_ and component own properties. If you are using explicit typing mostly, it is totally fine to use original one. But if you are expecting implicit type resolution, original connect is failing and resolving inner component type as`never`.
150
157
151
158
###Actions
152
159
@@ -231,14 +238,17 @@ export const authReducer = new ReducerBuilder<AuthState>()
231
238
232
239
[connect](https://react-redux.js.org/api/connect) method is part of[react-redux](https://github.com/reduxjs/react-redux) library that allows you to connect your react components with redux store.
233
240
241
+
>You can use`connected` method for implicit type resolution.