Commit c1d3b81
fix: mark Home component as async to support await
The example used `await getLogtoContext()` inside a normal function,
which caused a TypeScript error (TS1308). 'await' expressions are only
allowed within async functions and at the top levels of modules.
Marking the Home component as async resolves the error.1 parent 179585c commit c1d3b81
1 file changed
+2
-4
lines changedLines changed: 2 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
124 | | - | |
| 124 | + | |
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
| |||
150 | 150 | | |
151 | 151 | | |
152 | 152 | | |
153 | | - | |
154 | | - | |
155 | | - | |
| 153 | + | |
156 | 154 | | |
157 | 155 | | |
158 | 156 | | |
0 commit comments