Function
convertTrigger
(
Component: TriggerRender,
setComponent: (component: JSX.Element | null) => void,
e: HTMLElement,
props: TriggerProps,
)
Source from the content-addressed store, hash-verified
| 154 | |
| 155 | const 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) => ({ |
Tested by
no test coverage detected