jfairbank / redux-saga-router

A router for Redux Saga

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

beforeRouteChange always reports history.action as "POP"

slashwhatever opened this issue · comments

See screenshot: https://puu.sh/Awx72/96dad7e153.png

There are two sets of logging lines: one is in the beforeRouteChange method passed in as options to redux-saga-router, the other is using react-router-redux to listen to history updates. The latter doesn't post an initial log line but beforeRouteChange correctly logs a POP action.

However, for some reason, beforeRouteChange continues to always report a routing action as POP when it should (I think) be PUSH for subsequent routing actions.