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

Function convertRender

packages/solid-devtools/src/core.tsx:25–33  ·  view source on GitHub ↗
(
  el: HTMLDivElement | HTMLHeadingElement,
  Component: SolidPluginRender,
  props: TanStackDevtoolsPluginProps,
)

Source from the content-addressed store, hash-verified

23 if (isSolid2) {
24 ;(Solid.createEffect as any)(compute, apply)
25 } else {
26 ;(Solid.createEffect as any)(() => {
27 const value = compute()
28 Solid.untrack(() => apply(value))
29 })
30 }
31}
32
33/**
34 * Puts `values` into `el` in order. Nodes that are already in place stay
35 * attached, so an input that is not replaced keeps its focus. Only nodes that
36 * this function put in `el` are removed.

Callers 1

SolidDevtoolsCoreFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected