Skip to content
Open
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 mismatch.
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import { ThemeContextProvider } from '@tanstack/devtools-ui'
import { PacerContextProvider } from './PacerContextProvider'
import { Shell } from './components/Shell'
import { PacerContextProvider } from '../PacerContextProvider'
import { Shell } from './Shell'

import type { TanStackDevtoolsTheme } from '@tanstack/devtools-ui'

interface PacerDevtools {
interface DevtoolsProps {
theme: TanStackDevtoolsTheme
}

export default function PacerDevtools(props: PacerDevtools) {
export default function PacerDevtools(props: DevtoolsProps) {
return (
<ThemeContextProvider theme={props.theme}>
<PacerContextProvider>
Expand Down
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