Skip to content

Commit af3d67c

Browse files
committed
feat: improve react plugin handling to support contexts
1 parent 93a1fe5 commit af3d67c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/devtools/src/tabs/plugins-tab.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { For, createEffect } from 'solid-js'
22
import clsx from 'clsx'
33
import { usePlugins } from '../context/use-devtools-context'
44
import { useStyles } from '../styles/use-styles'
5-
import { PLUGIN_TITLE_CONTAINER_ID, PLUGIN_CONTAINER_ID } from '../constants'
5+
import { PLUGIN_CONTAINER_ID, PLUGIN_TITLE_CONTAINER_ID } from '../constants'
66

77
export const PluginsTab = () => {
88
const { plugins, activePlugin, setActivePlugin } = usePlugins()

packages/react-devtools/src/devtools.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import React, { useEffect, useRef, useState } from 'react'
22
import {
3-
TanStackRouterDevtoolsCore,
43
PLUGIN_CONTAINER_ID,
54
PLUGIN_TITLE_CONTAINER_ID,
5+
TanStackRouterDevtoolsCore,
66
} from '@tanstack/devtools'
7+
import { createPortal } from 'react-dom'
78
import type { JSX } from 'react'
89
import type { DevtoolsOptions, DevtoolsPlugin } from '@tanstack/devtools'
9-
import { createPortal } from 'react-dom'
1010

1111
type Render = JSX.Element | (() => JSX.Element)
1212
type ReactPlugin = Omit<DevtoolsPlugin, 'render' | 'name'> & {

0 commit comments

Comments
 (0)