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 a120650 commit c233db1Copy full SHA for c233db1
1 file changed
packages/devtools-utils/src/solid/class-mount-impl.tsx
@@ -7,22 +7,17 @@ import type { JSX } from 'solid-js'
7
export function __mountComponent(
8
el: HTMLElement,
9
theme: 'light' | 'dark',
10
- importFn: () => Promise<{ default: () => JSX.Element }>,
+ importFn: () => Promise<{
11
+ default: (props: { theme: 'light' | 'dark' }) => JSX.Element
12
+ }>,
13
): () => void {
14
const Component = lazy(importFn)
- const ThemeProvider = lazy(() =>
- import('@tanstack/devtools-ui').then((m) => ({
15
- default: m.ThemeContextProvider,
16
- })),
17
- )
18
19
return render(
20
() => (
21
<Portal mount={el}>
22
<div style={{ height: '100%' }}>
23
- <ThemeProvider theme={theme}>
24
- <Component />
25
- </ThemeProvider>
+ <Component theme={theme} />
26
</div>
27
</Portal>
28
),
0 commit comments