Jumping to action is time traveling

This commit is contained in:
Nathan Bierema 2022-01-06 21:16:47 -05:00
parent ec05f649b1
commit 56c84dcfeb

View File

@ -51,7 +51,8 @@ export default class Monitor<S, A extends Action<unknown>> {
this.lastAction && /^@@redux\/(INIT|REPLACE)/.test(this.lastAction);
isMonitorAction = () =>
this.lastAction && this.lastAction !== 'PERFORM_ACTION';
isTimeTraveling = () => this.lastAction === 'JUMP_TO_STATE';
isTimeTraveling = () =>
this.lastAction === 'JUMP_TO_STATE' || this.lastAction === 'JUMP_TO_ACTION';
isPaused = () => {
if (this.paused) {
if (this.lastAction !== 'BLOCKED') {