Skip to content

Commit b8fc8a9

Browse files
committed
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

Lines changed: 1 addition & 2 deletions
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)