Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/long-corners-repair.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@tanstack/pacer-devtools': patch
---

Moves devtools theme to the component to avoid theme miss-match.
16 changes: 16 additions & 0 deletions packages/pacer-devtools/src/components/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import { PacerContextProvider } from '../PacerContextProvider'
import { Shell } from './Shell'

import { ThemeContextProvider } from '@tanstack/devtools-ui'

import type { DevtoolProps } from '@tanstack/devtools-utils/solid'

export default function PacerDevtools(props: DevtoolProps) {
return (
<ThemeContextProvider theme={props.theme}>
<PacerContextProvider>
<Shell />
</PacerContextProvider>
</ThemeContextProvider>
)
}
2 changes: 1 addition & 1 deletion packages/pacer-devtools/src/core.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { constructCoreClass } from '@tanstack/devtools-utils/solid'
export interface PacerDevtoolsInit {}

const [PacerDevtoolsCore, PacerDevtoolsCoreNoOp] = constructCoreClass(
() => import('./PacerDevtools'),
() => import('./components'),
)

export { PacerDevtoolsCore, PacerDevtoolsCoreNoOp }
Loading