Function
convertRender
(
el: HTMLDivElement | HTMLHeadingElement,
Component: SolidPluginRender,
props: TanStackDevtoolsPluginProps,
)
Source from the content-addressed store, hash-verified
| 23 | props: TanStackDevtoolsPluginProps, |
| 24 | ) => JSX.Element) |
| 25 | const convertRender = ( |
| 26 | el: HTMLDivElement | HTMLHeadingElement, |
| 27 | Component: SolidPluginRender, |
| 28 | props: TanStackDevtoolsPluginProps, |
| 29 | ) => ( |
| 30 | <Portal mount={el}> |
| 31 | {typeof Component === 'function' ? Component(el, props) : Component} |
| 32 | </Portal> |
| 33 | ) |
| 34 | |
| 35 | export type TanStackDevtoolsSolidPlugin = Omit< |
| 36 | TanStackDevtoolsPlugin, |
Tested by
no test coverage detected