Skip to content

feat: extract theme provider#386

Draft
harry-whorlow wants to merge 5 commits intomainfrom
extract-theme-provider
Draft

feat: extract theme provider#386
harry-whorlow wants to merge 5 commits intomainfrom
extract-theme-provider

Conversation

@harry-whorlow
Copy link
Collaborator

Moves theme provider out of utils. Currently a mismatch of devtools and devtools utils will result in breaking an application. Relocating the theme provider to the respective devtools will stop these errors.

@changeset-bot
Copy link

changeset-bot bot commented Mar 12, 2026

🦋 Changeset detected

Latest commit: 8048d9d

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 7 packages
Name Type
@tanstack/devtools-utils Minor
@tanstack/devtools-ui Patch
@tanstack/devtools Patch
@tanstack/preact-devtools Patch
@tanstack/react-devtools Patch
@tanstack/solid-devtools Patch
@tanstack/vue-devtools Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@nx-cloud
Copy link

nx-cloud bot commented Mar 12, 2026

View your CI Pipeline Execution ↗ for commit 8048d9d

Command Status Duration Result
nx affected --targets=test:eslint,test:sherif,t... ✅ Succeeded 9s View ↗
nx run-many --targets=build --exclude=examples/** ✅ Succeeded 1s View ↗

☁️ Nx Cloud last updated this comment at 2026-03-12 21:57:04 UTC

@pkg-pr-new
Copy link

pkg-pr-new bot commented Mar 12, 2026

More templates

@tanstack/devtools

npm i https://pkg.pr.new/@tanstack/devtools@386

@tanstack/devtools-client

npm i https://pkg.pr.new/@tanstack/devtools-client@386

@tanstack/devtools-ui

npm i https://pkg.pr.new/@tanstack/devtools-ui@386

@tanstack/devtools-utils

npm i https://pkg.pr.new/@tanstack/devtools-utils@386

@tanstack/devtools-vite

npm i https://pkg.pr.new/@tanstack/devtools-vite@386

@tanstack/devtools-event-bus

npm i https://pkg.pr.new/@tanstack/devtools-event-bus@386

@tanstack/devtools-event-client

npm i https://pkg.pr.new/@tanstack/devtools-event-client@386

@tanstack/preact-devtools

npm i https://pkg.pr.new/@tanstack/preact-devtools@386

@tanstack/react-devtools

npm i https://pkg.pr.new/@tanstack/react-devtools@386

@tanstack/solid-devtools

npm i https://pkg.pr.new/@tanstack/solid-devtools@386

@tanstack/vue-devtools

npm i https://pkg.pr.new/@tanstack/vue-devtools@386

commit: 7a182e9

@harry-whorlow harry-whorlow force-pushed the extract-theme-provider branch from cddbb15 to 2c03299 Compare March 12, 2026 19:20
theme: 'light' | 'dark',
importFn: () => Promise<{ default: () => JSX.Element }>,
importFn: () => Promise<{
default: (props: { theme: 'light' | 'dark' }) => JSX.Element
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nts, use ThemeType

*/
export function constructCoreClass(
importFn: () => Promise<{ default: () => JSX.Element }>,
importFn: () => Promise<{ default: (props: DevtoolProps) => JSX.Element }>,
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nts: perhaps make a generic extending DevtoolProps

@harry-whorlow harry-whorlow marked this pull request as draft March 12, 2026 21:55
@harry-whorlow harry-whorlow force-pushed the extract-theme-provider branch from b0fb67b to 8048d9d Compare March 12, 2026 21:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant