We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b388411 commit fcedc43Copy full SHA for fcedc43
packages/core/src/client/webcomponents/state/logs.ts
@@ -62,10 +62,13 @@ export function useLogs(context: DocksContext): Reactive<LogsState> {
62
context.rpc.client.register({
63
name: 'devtoolskit:internal:logs:updated' satisfies keyof DevToolsRpcClientFunctions,
64
type: 'action',
65
- handler: () => updateLogs(),
+ handler: () => {
66
+ if (context.rpc.isTrusted)
67
+ updateLogs()
68
+ },
69
})
70
- updateLogs()
71
+ context.rpc.ensureTrusted().then(() => updateLogs())
72
return state
73
}
74
0 commit comments