Skip to content

Commit

Permalink
And that
Browse files Browse the repository at this point in the history
  • Loading branch information
Methuselah96 committed May 13, 2020
1 parent 00258ca commit b8fc8a9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/createStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -327,12 +327,11 @@ export default function createStore<
// the initial state tree.
dispatch({ type: ActionTypes.INIT } as A)

const store = ({
return ({
dispatch: dispatch as Dispatch<A>,
subscribe,
getState,
replaceReducer,
[$$observable]: observable
} as unknown) as Store<S, A, StateExt> & Ext
return store
}

0 comments on commit b8fc8a9

Please sign in to comment.