MCPcopy Create free account
hub / github.com/TanStack/devtools / convertTrigger

Function convertTrigger

packages/preact-devtools/src/devtools.tsx:156–165  ·  view source on GitHub ↗
(
  Component: TriggerRender,
  setComponent: (component: JSX.Element | null) => void,
  e: HTMLElement,
  props: TriggerProps,
)

Source from the content-addressed store, hash-verified

154
155const convertRender = (
156 Component: PluginRender,
157 setComponents: (
158 value:
159 | Record<string, JSX.Element>
160 | ((prev: Record<string, JSX.Element>) => Record<string, JSX.Element>),
161 ) => void,
162 e: HTMLElement,
163 props: TanStackDevtoolsPluginProps,
164) => {
165 const element =
166 typeof Component === 'function' ? Component(e, props) : Component
167
168 setComponents((prev) => ({

Callers 1

TanStackDevtoolsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected