Skip to content
This repository has been archived by the owner on Jul 27, 2018. It is now read-only.

Commit

Permalink
fix(listener): Fixed bug with listening for store changes (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonroberts authored and MikeRyanDev committed Sep 16, 2016
1 parent 87efa03 commit 821bebc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/connect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export function connectRouterActions(router: Router, store: Store<any>) {
}

export function listenForStoreChanges(router: Router, store: Store<any>) {
const storeAndRouter$ = withLatestFrom.call(store, getLatestUrl(router));
const storeAndRouter$ = withLatestFrom.call(selectRouter(store), getLatestUrl(router));
const mismatch$ = filter.call(storeAndRouter$, ([ rs, url ]) => rs.path !== url);
const newPath$ = map.call(mismatch$, ([ rs ]) => rs.path);

Expand Down

0 comments on commit 821bebc

Please sign in to comment.