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
+12Lines changed: 12 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,6 +25,18 @@ var store: Redux.Store<StoreState> = new StoreBuilder<StoreState>()
25
25
}
26
26
```
27
27
28
+
>To enable*chrome redux tool*; first declare a const then register within*StoreBuilder*
29
+
30
+
```js
31
+
constdevTool= (f:Redux.StoreCreator)=> {
32
+
return ((window as any).__REDUX_DEVTOOLS_EXTENSION__)? (window as any).__REDUX_DEVTOOLS_EXTENSION__: f
33
+
}
34
+
35
+
var store=newStoreBuilder<StoreState>()
36
+
.withEnhancer(devTool);
37
+
```
38
+
39
+
28
40
##Actions
29
41
30
42
Actions store data that are required on reducers. Declaration of them are succeed by their class name so no need to define type again. Depend on need, action could be either sync or async (like[redux-thunk](https://github.com/gaearon/redux-thunk)).