Function
convertTrigger
(
Component: TriggerRender,
setComponent: React.Dispatch<React.SetStateAction<JSX.Element | null>>,
e: HTMLElement,
props: TriggerProps,
)
Source from the content-addressed store, hash-verified
| 134 | } |
| 135 | |
| 136 | const convertTrigger = ( |
| 137 | Component: TriggerRender, |
| 138 | setComponent: React.Dispatch<React.SetStateAction<JSX.Element | null>>, |
| 139 | e: HTMLElement, |
| 140 | props: TriggerProps, |
| 141 | ) => { |
| 142 | const element = |
| 143 | typeof Component === 'function' ? Component(e, props) : Component |
| 144 | setComponent(element) |
| 145 | } |
| 146 | |
| 147 | export const TanStackDevtools = ({ |
| 148 | plugins, |
Tested by
no test coverage detected