Skip to content

Commit

Permalink
Merge pull request #108 from luskin/patch-2
Browse files Browse the repository at this point in the history
Update README to reflect new createStore
  • Loading branch information
abettadapur authored Oct 1, 2019
2 parents 8e0d742 + eee8d80 commit ebcbd14
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,16 +73,11 @@ export function getUsersModule(): IModule<IUserState> {
import { createStore, IModuleStore } from "redux-dynamic-modules";
import { getUsersModule } from "./usersModule";

const store: IModuleStore<IState> = createStore(
/* initial state */
{},

/** enhancers **/
[],

/* extensions to include */
[],

const store: IModuleStore<IState> = createStore({
initialState: { /** initial state */ },
enhancers: [ /** enhancers to include */ ],
extensions: [/** extensions to include i.e. getSagaExtension(), getThunkExtension() */],
},
getUsersModule()
/* ...any additional modules */
);
Expand Down

0 comments on commit ebcbd14

Please sign in to comment.