Commit 6d14ace
fix(emcn/toast): let global status toasts survive navigation (persistAcrossRoutes)
The route-clear dismissed every toast on navigation, including the persistent
realtime connection/reconnect status toast — which then never re-showed (the
provider's id ref short-circuited). Add a persistAcrossRoutes flag: the
navigation clear now keeps flagged toasts and only drops route-scoped ones, and
the WorkspacePermissionsProvider status toasts set it. Page-scoped toasts
(including actionable block errors) still clear on navigation as before.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 04dba48 commit 6d14ace
2 files changed
Lines changed: 35 additions & 4 deletions
File tree
- apps/sim
- app/workspace/[workspaceId]/providers
- components/emcn/components/toast
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
99 | | - | |
| 99 | + | |
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
| |||
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
| 133 | + | |
133 | 134 | | |
134 | 135 | | |
135 | 136 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
| 95 | + | |
95 | 96 | | |
96 | 97 | | |
97 | 98 | | |
| |||
100 | 101 | | |
101 | 102 | | |
102 | 103 | | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
103 | 111 | | |
104 | 112 | | |
105 | 113 | | |
| |||
529 | 537 | | |
530 | 538 | | |
531 | 539 | | |
| 540 | + | |
532 | 541 | | |
533 | 542 | | |
534 | 543 | | |
| |||
563 | 572 | | |
564 | 573 | | |
565 | 574 | | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
566 | 596 | | |
567 | 597 | | |
568 | 598 | | |
| |||
627 | 657 | | |
628 | 658 | | |
629 | 659 | | |
630 | | - | |
| 660 | + | |
631 | 661 | | |
632 | | - | |
633 | | - | |
| 662 | + | |
| 663 | + | |
634 | 664 | | |
635 | 665 | | |
636 | 666 | | |
| |||
0 commit comments