#1395·mockoon

Add an undo/redo feature

Author: 255kbCreated May 28, 2024Updated Jun 3, 2026
Labelscomponent:appstatus:approved

Problem

A global undo/redo should exists, allowing to quickly revert a change (route creation, bucket deletion, etc.)

Solution

To account for the cloud sync, it's not possible to simply save store's snapshots and revert it. We need to create an opposite reducer action and save it in the memory, separately for each opened environment.

When an undo is triggered, it should apply the previous opposite action.

We should only consider the environment mutating actions, not the environment create, environment open, etc.