Commit 4bb0b33
fix(launcher): guard setSettingsLoaded in catch on unmount
The catch branch of the initial settings-load effect was calling
setSettingsLoaded(true) without checking the disposed flag, which would
trigger React's setState-on-unmounted-component warning if the IPC
rejected after the hook unmounted (hot-reload, fast navigation).
Mirrors the existing guard in the .then branch.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>1 parent 0da3f64 commit 4bb0b33
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
183 | 183 | | |
184 | 184 | | |
185 | 185 | | |
186 | | - | |
| 186 | + | |
187 | 187 | | |
188 | 188 | | |
189 | 189 | | |
| |||
0 commit comments