Skip to content

Commit 0ae503d

Browse files
committed
Merge remote-tracking branch 'origin/main' into antfu/human-readable-auth
2 parents 329dce8 + 124606f commit 0ae503d

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

docs/guide/index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ outline: deep
55
# Getting Started
66

77
> [!WARNING]
8-
> Vite DevTools currently only supports Vite-Rolldown's build mode.
9-
> Dev mode and normal Vite are not supported yet.
8+
> Vite DevTools currently only supports build mode of Vite 8+.
9+
> Dev mode and Vite versions under 8 are not supported yet.
1010
1111
## What is Vite DevTools?
1212

@@ -113,7 +113,7 @@ Now that you have Vite DevTools set up, you can:
113113
114114
- **Build mode only**: Currently works with Vite-Rolldown's build mode
115115
- **Dev mode**: Not yet supported (planned for future releases)
116-
- **Standard Vite**: Requires Rolldown Vite for now
116+
- **Vite Version**: Requires Vite 8 or higher versions for now
117117

118118
## Architecture Overview
119119

packages/core/src/client/webcomponents/state/logs.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,13 @@ export function useLogs(context: DocksContext): Reactive<LogsState> {
6262
context.rpc.client.register({
6363
name: 'devtoolskit:internal:logs:updated' satisfies keyof DevToolsRpcClientFunctions,
6464
type: 'action',
65-
handler: () => updateLogs(),
65+
handler: () => {
66+
if (context.rpc.isTrusted)
67+
updateLogs()
68+
},
6669
})
6770

68-
updateLogs()
71+
context.rpc.ensureTrusted().then(() => updateLogs())
6972
return state
7073
}
7174

0 commit comments

Comments
 (0)