Commit 0438d69
committed
fix(app): stop the auto-connect effect from cancelling itself in Strict Mode
The stored server URL was passed to connect() from inside a setTimeout,
and Strict Mode's mount-cleanup-remount cycle cleared that timer before
it fired. The ref guard then blocked the second attempt, so a persisted
URL never reconnected in development. Calling connect() directly keeps
the guard's single-attempt behaviour without the cancellable deferral.1 parent aa7c725 commit 0438d69
1 file changed
Lines changed: 9 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
75 | 78 | | |
76 | 79 | | |
77 | 80 | | |
78 | 81 | | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
88 | 87 | | |
89 | 88 | | |
90 | 89 | | |
| |||
0 commit comments