Commit a00ac0d
committed
fix(sandpack): resolve UI desync after reset by removing call to reset()
Remove call to refresh() in the handleReset function and dependencies related to refresh() from NavigationBar.tsx file to fix a UI desynchronization issue in the Sandpack embedded editor. Currently, clicking the reset button resets the code but does not update the UI until the editor is interacted with.1 parent 6ae99dd commit a00ac0d
File tree
1 file changed
+2
-10
lines changed- src/components/MDX/Sandpack
1 file changed
+2
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
| 14 | + | |
19 | 15 | | |
20 | 16 | | |
21 | 17 | | |
| |||
47 | 43 | | |
48 | 44 | | |
49 | 45 | | |
50 | | - | |
51 | | - | |
52 | | - | |
| 46 | + | |
53 | 47 | | |
54 | 48 | | |
55 | 49 | | |
| |||
109 | 103 | | |
110 | 104 | | |
111 | 105 | | |
112 | | - | |
113 | | - | |
114 | 106 | | |
115 | 107 | | |
116 | 108 | | |
| |||
0 commit comments