File tree 7 files changed +18
-18
lines changed
7 files changed +18
-18
lines changed Original file line number Diff line number Diff line change @@ -64,10 +64,10 @@ export function getUsersModule(): IModule<IUserState> {
64
64
* Create a ` ModuleStore `
65
65
66
66
``` typescript
67
- import {configureStore , IModuleStore } from " redux-dynamic-modules" ;
67
+ import {createStore , IModuleStore } from " redux-dynamic-modules" ;
68
68
import {getUsersModule } from " ./usersModule" ;
69
69
70
- const store: IModuleStore <IState > = configureStore (
70
+ const store: IModuleStore <IState > = createStore (
71
71
/* initial state */
72
72
{},
73
73
Original file line number Diff line number Diff line change @@ -30,10 +30,10 @@ export function getUsersModule(): IModule<IUserState> {
30
30
* Create a ` ModuleStore `
31
31
32
32
``` typescript
33
- import {configureStore , IModuleStore } from " redux-dynamic-modules" ;
33
+ import {createStore , IModuleStore } from " redux-dynamic-modules" ;
34
34
import {getUsersModule } from " ./usersModule" ;
35
35
36
- const store: IModuleStore <IState > = configureStore (
36
+ const store: IModuleStore <IState > = createStore (
37
37
/* initial state */
38
38
{},
39
39
Original file line number Diff line number Diff line change @@ -21,9 +21,9 @@ export interface IExtension {
21
21
```
22
22
23
23
## Adding extensions to the store
24
- To add an extension to the ` ModuleStore ` , pass it as the second argument to ` configureStore `
24
+ To add an extension to the ` ModuleStore ` , pass it as the second argument to ` createStore `
25
25
``` typescript
26
- const store: IModuleStore <IState > = configureStore ({}, [getMyExtension ()])
26
+ const store: IModuleStore <IState > = createStore ({}, [getMyExtension ()])
27
27
```
28
28
29
29
Original file line number Diff line number Diff line change @@ -5,14 +5,14 @@ The **Module Store** is a Redux store with the added capability of managing **Re
5
5
* ` addModules(modules: IModule<any>[]) ` : Same as ` addModule ` , but for multiple modules. The return function will remove all the added modules.
6
6
* ` dispose() ` : Remove all of the modules added to the store and dispose of the object
7
7
8
- To create a ` ModuleStore ` , use the ` configureStore ` function from our package
8
+ To create a ` ModuleStore ` , use the ` createStore ` function from our package
9
9
10
10
## Example {docsify-ignore}
11
11
``` typescript
12
- import { configureStore , IModuleStore } from " redux-dynamic-modules" ;
12
+ import { createStore , IModuleStore } from " redux-dynamic-modules" ;
13
13
import {getUsersModule } from " ./usersModule" ;
14
14
15
- const store: IModuleStore <IState > = configureStore (
15
+ const store: IModuleStore <IState > = createStore (
16
16
/* initial state */
17
17
{},
18
18
Original file line number Diff line number Diff line change @@ -3,14 +3,14 @@ You can use `redux-dynamic-modules` alongside `redux-observable` so that you can
3
3
4
4
To use
5
5
* ` npm install redux-dynamic-modules-observable `
6
- * Add the observable extension to the ` configureStore ` call
6
+ * Add the observable extension to the ` createStore ` call
7
7
8
8
``` typescript
9
- import { configureStore , IModuleStore } from " redux-dynamic-modules" ;
9
+ import { createStore , IModuleStore } from " redux-dynamic-modules" ;
10
10
import { getObservableExtension } from " redux-dynamic-modules-observable" ;
11
11
import { getUsersModule } from " ./usersModule" ;
12
12
13
- const store: IModuleStore <IState > = configureStore (
13
+ const store: IModuleStore <IState > = createStore (
14
14
/* initial state */
15
15
{},
16
16
Original file line number Diff line number Diff line change @@ -3,14 +3,14 @@ You can use `redux-dynamic-modules` alongside `redux-saga` so that you can add/r
3
3
4
4
To use
5
5
* ` npm install redux-dynamic-modules-saga `
6
- * Add the saga extension to the ` configureStore ` call
6
+ * Add the saga extension to the ` createStore ` call
7
7
8
8
``` typescript
9
- import { configureStore , IModuleStore } from " redux-dynamic-modules" ;
9
+ import { createStore , IModuleStore } from " redux-dynamic-modules" ;
10
10
import { getSagaExtension } from " redux-dynamic-modules-saga" ;
11
11
import { getUsersModule } from " ./usersModule" ;
12
12
13
- const store: IModuleStore <IState > = configureStore (
13
+ const store: IModuleStore <IState > = createStore (
14
14
/* initial state */
15
15
{},
16
16
Original file line number Diff line number Diff line change @@ -3,14 +3,14 @@ You can use `redux-dynamic-modules` alongside `redux-thunk`.
3
3
4
4
To use
5
5
* ` npm install redux-dynamic-modules-thunk `
6
- * Add the thunk extension to the ` configureStore ` call
6
+ * Add the thunk extension to the ` createStore ` call
7
7
8
8
``` typescript
9
- import { configureStore , IModuleStore } from " redux-dynamic-modules" ;
9
+ import { createStore , IModuleStore } from " redux-dynamic-modules" ;
10
10
import { getThunkExtension } from " redux-dynamic-modules-thunk" ;
11
11
import { getUsersModule } from " ./usersModule" ;
12
12
13
- const store: IModuleStore <IState > = configureStore (
13
+ const store: IModuleStore <IState > = createStore (
14
14
/* initial state */
15
15
{},
16
16
You can’t perform that action at this time.
0 commit comments