Commit fadfbc0
authored
clearing chat input when switching apps (dyad-sh#1791)
This PR adresses issue dyad-sh#1735
<!-- This is an auto-generated description by cubic. -->
---
## Summary by cubic
Clear chat input and selected component previews when switching apps to
prevent state carryover. Fixes dyad-sh#1735.
- **Bug Fixes**
- Reset chatInputValueAtom and selectedComponentsPreviewAtom on
selectedAppId change in RootLayout.
- Ensures each app opens with a clean chat and preview state.
<sup>Written for commit df16678.
Summary will update automatically on new commits.</sup>
<!-- End of auto-generated description by cubic. -->1 parent 76875fe commit fadfbc0
1 file changed
+14
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | | - | |
| 9 | + | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
13 | 15 | | |
14 | 16 | | |
15 | 17 | | |
16 | 18 | | |
17 | 19 | | |
18 | 20 | | |
19 | 21 | | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
20 | 27 | | |
21 | 28 | | |
22 | 29 | | |
| |||
63 | 70 | | |
64 | 71 | | |
65 | 72 | | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
66 | 78 | | |
67 | 79 | | |
68 | 80 | | |
| |||
0 commit comments