mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2025-07-23 14:39:58 +03:00
Jumping to action is time traveling
This commit is contained in:
parent
ec05f649b1
commit
56c84dcfeb
|
@ -51,7 +51,8 @@ export default class Monitor<S, A extends Action<unknown>> {
|
||||||
this.lastAction && /^@@redux\/(INIT|REPLACE)/.test(this.lastAction);
|
this.lastAction && /^@@redux\/(INIT|REPLACE)/.test(this.lastAction);
|
||||||
isMonitorAction = () =>
|
isMonitorAction = () =>
|
||||||
this.lastAction && this.lastAction !== 'PERFORM_ACTION';
|
this.lastAction && this.lastAction !== 'PERFORM_ACTION';
|
||||||
isTimeTraveling = () => this.lastAction === 'JUMP_TO_STATE';
|
isTimeTraveling = () =>
|
||||||
|
this.lastAction === 'JUMP_TO_STATE' || this.lastAction === 'JUMP_TO_ACTION';
|
||||||
isPaused = () => {
|
isPaused = () => {
|
||||||
if (this.paused) {
|
if (this.paused) {
|
||||||
if (this.lastAction !== 'BLOCKED') {
|
if (this.lastAction !== 'BLOCKED') {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user