Repository navigation
Commit ccde828
committed
fix: race condition causing prompt.set undefined error
Fixes a race condition where onMount() was called before the prompt
ref was initialized, causing "undefined is not an object (evaluating
'prompt.set')" error when starting a new session from inside an
existing session.
Changed from onMount() to createEffect() with a prompt existence
check, matching the pattern used in session/index.tsx.
Fixes anomalyco#78701 parent fa79736 commit ccde828
1 file changed
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
79 | | - | |
80 | | - | |
81 | | - | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
| |||
0 commit comments