File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed
packages/core/src/client/webcomponents/state Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments