replaying flag held inside action

This commit is contained in:
Tomas Weiss 2016-04-02 13:50:22 +02:00
parent 0382e6c37e
commit 2e25fe2b02

View File

@ -70,7 +70,7 @@ function computeNextEntry(reducer, action, state, error, replaying) {
let nextState = state; let nextState = state;
let nextError; let nextError;
try { try {
nextState = reducer(state, action, replaying); nextState = reducer(state, { ...action, replaying });
} catch (err) { } catch (err) {
nextError = err.toString(); nextError = err.toString();
if (typeof window === 'object' && typeof window.chrome !== 'undefined') { if (typeof window === 'object' && typeof window.chrome !== 'undefined') {