File tree Expand file tree Collapse file tree
packages/devtools-utils/src/solid Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,16 +14,16 @@ import type { JSX } from 'solid-js'
1414export function constructCoreClass ( Component : ( ) => JSX . Element ) {
1515 class DevtoolsCore {
1616 #isMounted = false
17- #isMounting = false ;
18- #mountCb: ( ( ) => void ) | null = null ;
17+ #isMounting = false
18+ #mountCb: ( ( ) => void ) | null = null
1919 #dispose?: ( ) => void
2020 #Component: any
2121 #ThemeProvider: any
2222
23- constructor ( ) { }
23+ constructor ( ) { }
2424
2525 async mount < T extends HTMLElement > ( el : T , theme : 'light' | 'dark' ) {
26- this . #isMounting = true ;
26+ this . #isMounting = true
2727 const { lazy } = await import ( 'solid-js' )
2828 const { render, Portal } = await import ( 'solid-js/web' )
2929 if ( this . #isMounted) {
@@ -52,11 +52,11 @@ export function constructCoreClass(Component: () => JSX.Element) {
5252 )
5353 } , mountTo )
5454 this . #isMounted = true
55- this . #isMounting = false ;
55+ this . #isMounting = false
5656 this . #dispose = dispose
5757 if ( this . #mountCb) {
58- this . #mountCb( ) ;
59- this . #mountCb = null ;
58+ this . #mountCb( )
59+ this . #mountCb = null
6060 }
6161 }
6262
@@ -69,7 +69,7 @@ export function constructCoreClass(Component: () => JSX.Element) {
6969 this . #dispose?.( )
7070 this . #isMounted = false
7171 }
72- return ;
72+ return
7373 }
7474 this . #dispose?.( )
7575 this . #isMounted = false
@@ -79,8 +79,8 @@ export function constructCoreClass(Component: () => JSX.Element) {
7979 constructor ( ) {
8080 super ( )
8181 }
82- async mount < T extends HTMLElement > ( _el : T , _theme : 'light' | 'dark' ) { }
83- unmount ( ) { }
82+ async mount < T extends HTMLElement > ( _el : T , _theme : 'light' | 'dark' ) { }
83+ unmount ( ) { }
8484 }
8585 return [ DevtoolsCore , NoOpDevtoolsCore ] as const
8686}
You can’t perform that action at this time.
0 commit comments