redux-saga-router icon indicating copy to clipboard operation
redux-saga-router copied to clipboard

beforeRouteChange always reports history.action as "POP"

Open slashwhatever opened this issue 6 years ago • 0 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.

slashwhatever avatar May 31 '18 15:05 slashwhatever