Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit b8fc8a9

Browse files
committedMay 13, 2020
And that
1 parent 00258ca commit b8fc8a9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed
 

‎src/createStore.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -327,12 +327,11 @@ export default function createStore<
327327
// the initial state tree.
328328
dispatch({ type: ActionTypes.INIT } as A)
329329

330-
const store = ({
330+
return ({
331331
dispatch: dispatch as Dispatch<A>,
332332
subscribe,
333333
getState,
334334
replaceReducer,
335335
[$$observable]: observable
336336
} as unknown) as Store<S, A, StateExt> & Ext
337-
return store
338337
}

0 commit comments

Comments
 (0)
Please sign in to comment.