Skip to content

Commit

Permalink
Add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
oatkiller committed Feb 20, 2020
1 parent 60db616 commit 66c4590
Showing 1 changed file with 10 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,16 @@ export const substateMiddlewareFactory = <Substate>(
};
};

export const appStoreFactory: (coreStart: CoreStart, disableMiddleware?: boolean) => Store = (
coreStart,
disableMiddleware = false
) => {
export const appStoreFactory: (
/**
* Allow middleware to communicate with Kibana core.
*/
coreStart: CoreStart,
/**
* Create the store without any middleware. This is useful for testing the store w/o side effects.
*/
disableMiddleware?: boolean
) => Store = (coreStart, disableMiddleware = false) => {
const store = createStore(
appReducer,
disableMiddleware
Expand Down

0 comments on commit 66c4590

Please sign in to comment.