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
Define a top-level property of the redux state including its initial value, all related reducers, and returns a react-hook, dispatchers and virtualStore.
- myDispatchers: object mapping action names to matching myDispatchers
249
+
- setMyStore: `(newState) => dispatcher-results`
250
+
- myDispatchers: object mapping action names to dispatchers
251
+
-`{myAction: (payload) => dispatcher-results}`}
251
252
- virtualStore: object with API similar to a redux store, but just for the state defined in this createReduxModule call
252
253
253
254
#### useMyStore
@@ -335,7 +336,7 @@ import {getState} from 'hooks-for-redux'
335
336
336
337
### Store Registry API
337
338
338
-
Getting started, you can ignore the store registry. It's goal is to automatically manage creating your store and making sure all your code has access. However, if you want to customize your redux store, it's easy to do (see the [custom middleware example](#example-custom-middleware) above).
339
+
Getting started, you can ignore the store registry. Its goal is to automatically manage creating your store and making sure all your code has access. However, if you want to customize your redux store, it's easy to do (see the [custom middleware example](#example-custom-middleware) above).
339
340
340
341
#### getStore
341
342
@@ -442,7 +443,7 @@ const Provider = ({ store = getStore(), context, children }) =>
The big win, however, comes from one key observation: if you are writing your own routing, you are doing it wrong. The same can be said for dispatching and subscriptions.
446
+
H4R's biggest wincomes from one key observation: *if you are writing your own routing, you are doing it wrong.* The same can be said for dispatching and subscriptions.
446
447
447
448
The `createReduxModule` function automates all the manual routing required to make plain Redux work. It inputs only the essential data and functions necessary to define a redux model, and it returns all the tools you need to use it.
0 commit comments