Function
convertRender
(
Component: PluginRender,
setComponents: (
value:
| Record<string, JSX.Element>
| ((prev: Record<string, JSX.Element>) => Record<string, JSX.Element>),
) => void,
e: HTMLElement,
props: TanStackDevtoolsPluginProps,
)
Source from the content-addressed store, hash-verified
| 135 | container: HTMLElement |
| 136 | }, |
| 137 | context: object, |
| 138 | ) { |
| 139 | useEffect(() => { |
| 140 | render( |
| 141 | <ContextProvider context={context}>{children}</ContextProvider>, |
| 142 | container, |
| 143 | ) |
| 144 | }) |
| 145 | |
| 146 | useEffect(() => { |
| 147 | return () => { |
| 148 | render(null, container) |
| 149 | } |
| 150 | }, [container]) |
| 151 | |
| 152 | return null |
| 153 | } |
| 154 | |
| 155 | const convertRender = ( |
| 156 | Component: PluginRender, |
| 157 | setComponents: ( |
Tested by
no test coverage detected