MCPcopy Index your code
hub / github.com/TanStack/ai / disabled

Function disabled

packages/ai-solid-ui/src/chat-input.tsx:63–63  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

61 const [value, setValue] = createSignal('')
62
63 const disabled = () => props.disabled || isLoading()
64
65 const handleSubmit = () => {
66 if (!value().trim() || disabled()) return

Callers 3

handleSubmitFunction · 0.85
renderPropsFunction · 0.85
ChatInputFunction · 0.85

Calls 1

isLoadingFunction · 0.50

Tested by

no test coverage detected