Commit 7501a62
fix(client): stop demo/RESET from wiping preferences and fix hidden-scenarios toggle
demo/RESET previously reinitialized the entire Redux tree, silently
resetting dev/creator preferences (dark mode, hidden scenarios,
revocation, showcase upload) back to defaults. Preserve the
preferences slice across the reset instead.
Also remove showHiddenScenarios from IntroductionPage's mount-only
redirect/reset effect dependencies, since toggling the preference
was re-triggering that effect and dispatching demo/RESET, undoing
the toggle in the same tick.
Signed-off-by: Emiliano Suñé <2395873+esune@users.noreply.github.com>1 parent 19e0f03 commit 7501a62
2 files changed
Lines changed: 4 additions & 2 deletions
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
| 60 | + | |
| 61 | + | |
61 | 62 | | |
62 | 63 | | |
63 | 64 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
| 48 | + | |
| 49 | + | |
49 | 50 | | |
50 | 51 | | |
51 | 52 | | |
| |||
0 commit comments