Skip to content

Commit b945283

Browse files
committed
Update docs to reference createStore
1 parent 835d0db commit b945283

File tree

7 files changed

+18
-18
lines changed

7 files changed

+18
-18
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,10 @@ export function getUsersModule(): IModule<IUserState> {
6464
* Create a `ModuleStore`
6565

6666
```typescript
67-
import {configureStore, IModuleStore} from "redux-dynamic-modules";
67+
import {createStore, IModuleStore} from "redux-dynamic-modules";
6868
import {getUsersModule} from "./usersModule";
6969

70-
const store: IModuleStore<IState> = configureStore(
70+
const store: IModuleStore<IState> = createStore(
7171
/* initial state */
7272
{},
7373

docs/GettingStarted.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ export function getUsersModule(): IModule<IUserState> {
3030
* Create a `ModuleStore`
3131

3232
```typescript
33-
import {configureStore, IModuleStore} from "redux-dynamic-modules";
33+
import {createStore, IModuleStore} from "redux-dynamic-modules";
3434
import {getUsersModule} from "./usersModule";
3535

36-
const store: IModuleStore<IState> = configureStore(
36+
const store: IModuleStore<IState> = createStore(
3737
/* initial state */
3838
{},
3939

docs/reference/Extensions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ export interface IExtension {
2121
```
2222

2323
## 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`
2525
```typescript
26-
const store: IModuleStore<IState> = configureStore({}, [getMyExtension()])
26+
const store: IModuleStore<IState> = createStore({}, [getMyExtension()])
2727
```
2828

2929

docs/reference/ModuleStore.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ The **Module Store** is a Redux store with the added capability of managing **Re
55
* `addModules(modules: IModule<any>[])`: Same as `addModule`, but for multiple modules. The return function will remove all the added modules.
66
* `dispose()`: Remove all of the modules added to the store and dispose of the object
77

8-
To create a `ModuleStore`, use the `configureStore` function from our package
8+
To create a `ModuleStore`, use the `createStore` function from our package
99

1010
## Example {docsify-ignore}
1111
```typescript
12-
import { configureStore, IModuleStore } from "redux-dynamic-modules";
12+
import { createStore, IModuleStore } from "redux-dynamic-modules";
1313
import {getUsersModule} from "./usersModule";
1414

15-
const store: IModuleStore<IState> = configureStore(
15+
const store: IModuleStore<IState> = createStore(
1616
/* initial state */
1717
{},
1818

docs/reference/ReduxObservable.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ You can use `redux-dynamic-modules` alongside `redux-observable` so that you can
33

44
To use
55
* `npm install redux-dynamic-modules-observable`
6-
* Add the observable extension to the `configureStore` call
6+
* Add the observable extension to the `createStore` call
77

88
```typescript
9-
import { configureStore, IModuleStore } from "redux-dynamic-modules";
9+
import { createStore, IModuleStore } from "redux-dynamic-modules";
1010
import { getObservableExtension } from "redux-dynamic-modules-observable";
1111
import { getUsersModule } from "./usersModule";
1212

13-
const store: IModuleStore<IState> = configureStore(
13+
const store: IModuleStore<IState> = createStore(
1414
/* initial state */
1515
{},
1616

docs/reference/ReduxSaga.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ You can use `redux-dynamic-modules` alongside `redux-saga` so that you can add/r
33

44
To use
55
* `npm install redux-dynamic-modules-saga`
6-
* Add the saga extension to the `configureStore` call
6+
* Add the saga extension to the `createStore` call
77

88
```typescript
9-
import { configureStore, IModuleStore } from "redux-dynamic-modules";
9+
import { createStore, IModuleStore } from "redux-dynamic-modules";
1010
import { getSagaExtension } from "redux-dynamic-modules-saga";
1111
import { getUsersModule } from "./usersModule";
1212

13-
const store: IModuleStore<IState> = configureStore(
13+
const store: IModuleStore<IState> = createStore(
1414
/* initial state */
1515
{},
1616

docs/reference/ReduxThunk.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ You can use `redux-dynamic-modules` alongside `redux-thunk`.
33

44
To use
55
* `npm install redux-dynamic-modules-thunk`
6-
* Add the thunk extension to the `configureStore` call
6+
* Add the thunk extension to the `createStore` call
77

88
```typescript
9-
import { configureStore, IModuleStore } from "redux-dynamic-modules";
9+
import { createStore, IModuleStore } from "redux-dynamic-modules";
1010
import { getThunkExtension } from "redux-dynamic-modules-thunk";
1111
import { getUsersModule } from "./usersModule";
1212

13-
const store: IModuleStore<IState> = configureStore(
13+
const store: IModuleStore<IState> = createStore(
1414
/* initial state */
1515
{},
1616

0 commit comments

Comments
 (0)