MCPcopy Create free account
hub / github.com/thetarnav/solid-devtools / ObjectValuePreview

Function ObjectValuePreview

packages/frontend/src/inspector.tsx:637–665  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

635 extended?: boolean
636 label?: string
637}> = props => {
638 return (
639 <s.Show
640 when={
641 props.data.value &&
642 props.data.length &&
643 props.extended
644 }
645 children={
646 <CollapsableObjectPreview value={props.data.value!} />
647 }
648 fallback={
649 <s.Show
650 when={props.data.length}
651 children={
652 <span class={value_base} aria-label={props.label}>
653 {getObjectValueName(props.type)} [{props.data.length}]
654 </span>
655 }
656 fallback={
657 <span class={value_nullable} aria-label={props.label}>
658 Empty {getObjectValueName(props.type)}
659 </span>
660 }
661 />
662 }
663 />
664 )
665}
666
667const string_value_class = 'string_value'
668const string_value = clsx(

Callers

nothing calls this directly

Calls 1

getObjectValueNameFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…